Enum tbot::types::input_file::PhotoOrVideo
source · Expand description
Represents a media that can be sent in a group (aka albums).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
source§impl Clone for PhotoOrVideo
impl Clone for PhotoOrVideo
source§fn clone(&self) -> PhotoOrVideo
fn clone(&self) -> PhotoOrVideo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PhotoOrVideo
impl Debug for PhotoOrVideo
source§impl From<Photo> for PhotoOrVideo
impl From<Photo> for PhotoOrVideo
source§impl From<Video> for PhotoOrVideo
impl From<Video> for PhotoOrVideo
source§impl Hash for PhotoOrVideo
impl Hash for PhotoOrVideo
source§impl PartialEq<PhotoOrVideo> for PhotoOrVideo
impl PartialEq<PhotoOrVideo> for PhotoOrVideo
source§fn eq(&self, other: &PhotoOrVideo) -> bool
fn eq(&self, other: &PhotoOrVideo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.