Struct teloxide::types::MediaAnimation
source · pub struct MediaAnimation {
pub animation: Animation,
pub caption: Option<String>,
pub caption_entities: Vec<MessageEntity, Global>,
pub has_media_spoiler: bool,
}
Fields§
§animation: Animation
Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set.
Caption for the animation, 0-1024 characters.
For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption.
has_media_spoiler: bool
true
, if the message media is covered by a spoiler animation.
Trait Implementations§
source§impl Clone for MediaAnimation
impl Clone for MediaAnimation
source§fn clone(&self) -> MediaAnimation
fn clone(&self) -> MediaAnimation
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 MediaAnimation
impl Debug for MediaAnimation
source§impl<'de> Deserialize<'de> for MediaAnimation
impl<'de> Deserialize<'de> for MediaAnimation
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<MediaAnimation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<MediaAnimation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<MediaAnimation> for MediaAnimation
impl PartialEq<MediaAnimation> for MediaAnimation
source§fn eq(&self, other: &MediaAnimation) -> bool
fn eq(&self, other: &MediaAnimation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MediaAnimation
impl Serialize for MediaAnimation
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more