pub struct MessageAnimation {
pub animation: Animation,
pub caption: FormattedText,
pub has_spoiler: bool,
pub is_secret: bool,
}
Expand description
An animation message (GIF-style).
Fields§
§animation: Animation
The animation description
caption: FormattedText
Animation caption
has_spoiler: bool
True, if the animation preview must be covered by a spoiler animation
is_secret: bool
True, if the animation thumbnail must be blurred and the animation must be shown only while tapped
Trait Implementations§
Source§impl Clone for MessageAnimation
impl Clone for MessageAnimation
Source§fn clone(&self) -> MessageAnimation
fn clone(&self) -> MessageAnimation
Returns a duplicate 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 MessageAnimation
impl Debug for MessageAnimation
Source§impl<'de> Deserialize<'de> for MessageAnimation
impl<'de> Deserialize<'de> for MessageAnimation
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 MessageAnimation
impl PartialEq for MessageAnimation
Source§impl Serialize for MessageAnimation
impl Serialize for MessageAnimation
impl StructuralPartialEq for MessageAnimation
Auto Trait Implementations§
impl Freeze for MessageAnimation
impl RefUnwindSafe for MessageAnimation
impl Send for MessageAnimation
impl Sync for MessageAnimation
impl Unpin for MessageAnimation
impl UnwindSafe for MessageAnimation
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