pub struct InputMessageAnimation {
pub animation: InputFile,
pub thumbnail: Option<InputThumbnail>,
pub added_sticker_file_ids: Vec<i32>,
pub duration: i32,
pub width: i32,
pub height: i32,
pub caption: Option<FormattedText>,
pub has_spoiler: bool,
}
Expand description
An animation message (GIF-style).
Fields§
§animation: InputFile
Animation file to be sent
thumbnail: Option<InputThumbnail>
Animation thumbnail; pass null to skip thumbnail uploading
added_sticker_file_ids: Vec<i32>
File identifiers of the stickers added to the animation, if applicable
duration: i32
Duration of the animation, in seconds
width: i32
Width of the animation; may be replaced by the server
height: i32
Height of the animation; may be replaced by the server
caption: Option<FormattedText>
Animation caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters
has_spoiler: bool
True, if the animation preview must be covered by a spoiler animation; not supported in secret chats
Trait Implementations§
Source§impl Clone for InputMessageAnimation
impl Clone for InputMessageAnimation
Source§fn clone(&self) -> InputMessageAnimation
fn clone(&self) -> InputMessageAnimation
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 InputMessageAnimation
impl Debug for InputMessageAnimation
Source§impl<'de> Deserialize<'de> for InputMessageAnimation
impl<'de> Deserialize<'de> for InputMessageAnimation
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 InputMessageAnimation
impl PartialEq for InputMessageAnimation
Source§impl Serialize for InputMessageAnimation
impl Serialize for InputMessageAnimation
impl StructuralPartialEq for InputMessageAnimation
Auto Trait Implementations§
impl Freeze for InputMessageAnimation
impl RefUnwindSafe for InputMessageAnimation
impl Send for InputMessageAnimation
impl Sync for InputMessageAnimation
impl Unpin for InputMessageAnimation
impl UnwindSafe for InputMessageAnimation
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