Enum telexide::api::types::InputMedia
source · pub enum InputMedia {
Photo(InputMediaPhoto),
Video(InputMediaVideo),
Animation(InputMediaAnimation),
Audio(InputMediaAudio),
Document(InputMediaDocument),
}
Expand description
This object represents the content of a media message to be sent
Variants§
Photo(InputMediaPhoto)
Video(InputMediaVideo)
Animation(InputMediaAnimation)
Audio(InputMediaAudio)
Document(InputMediaDocument)
Implementations§
Trait Implementations§
source§impl Clone for InputMedia
impl Clone for InputMedia
source§fn clone(&self) -> InputMedia
fn clone(&self) -> InputMedia
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 InputMedia
impl Debug for InputMedia
source§impl<'de> Deserialize<'de> for InputMedia
impl<'de> Deserialize<'de> for InputMedia
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for InputMedia
impl PartialEq for InputMedia
source§fn eq(&self, other: &InputMedia) -> bool
fn eq(&self, other: &InputMedia) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InputMedia
impl Serialize for InputMedia
impl Eq for InputMedia
impl StructuralEq for InputMedia
impl StructuralPartialEq for InputMedia
Auto Trait Implementations§
impl RefUnwindSafe for InputMedia
impl Send for InputMedia
impl Sync for InputMedia
impl Unpin for InputMedia
impl UnwindSafe for InputMedia
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneDebuggableStorage for Twhere
T: DebuggableStorage + Clone,
impl<T> CloneDebuggableStorage for Twhere T: DebuggableStorage + Clone,
fn clone_storage(&self) -> Box<dyn CloneDebuggableStorage>
source§impl<T> CloneableStorage for Twhere
T: Any + Send + Sync + Clone,
impl<T> CloneableStorage for Twhere T: Any + Send + Sync + Clone,
fn clone_storage(&self) -> Box<dyn CloneableStorage>
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.