Struct tg_flows::MediaAnimation
source · pub struct MediaAnimation {
pub animation: Animation,
pub caption: Option<String>,
pub caption_entities: Vec<MessageEntity>,
pub has_media_spoiler: bool,
}Fields§
§animation: AnimationMessage is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set.
caption: Option<String>Caption for the animation, 0-1024 characters.
caption_entities: Vec<MessageEntity>For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption.
has_media_spoiler: booltrue, 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<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<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
impl StructuralPartialEq for MediaAnimation
Auto Trait Implementations§
impl RefUnwindSafe for MediaAnimation
impl Send for MediaAnimation
impl Sync for MediaAnimation
impl Unpin for MediaAnimation
impl UnwindSafe for MediaAnimation
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