pub struct InputMediaAnimation { /* private fields */ }Expand description
Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.
Implementations§
Source§impl InputMediaAnimation
impl InputMediaAnimation
Sourcepub fn with_caption<T>(self, value: T) -> Self
pub fn with_caption<T>(self, value: T) -> Self
Sourcepub fn with_caption_entities<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = TextEntity>,
pub fn with_caption_entities<T>(self, value: T) -> Selfwhere
T: IntoIterator<Item = TextEntity>,
Sourcepub fn with_caption_parse_mode(self, value: ParseMode) -> Self
pub fn with_caption_parse_mode(self, value: ParseMode) -> Self
Sourcepub fn with_duration(self, value: Integer) -> Self
pub fn with_duration(self, value: Integer) -> Self
Sourcepub fn with_has_spoiler(self, value: bool) -> Self
pub fn with_has_spoiler(self, value: bool) -> Self
Sets a new value for the has_spoiler flag.
§Arguments
value- Indicates whether to cover with a spoiler animation.
Sourcepub fn with_height(self, value: Integer) -> Self
pub fn with_height(self, value: Integer) -> Self
Sourcepub fn with_show_caption_above_media(self, value: bool) -> Self
pub fn with_show_caption_above_media(self, value: bool) -> Self
Sets a new value for the show_caption_above_media flag.
§Arguments
value- Whether the caption must be shown above the message media.
Sourcepub fn with_width(self, value: Integer) -> Self
pub fn with_width(self, value: Integer) -> Self
Trait Implementations§
Source§impl Clone for InputMediaAnimation
impl Clone for InputMediaAnimation
Source§fn clone(&self) -> InputMediaAnimation
fn clone(&self) -> InputMediaAnimation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputMediaAnimation
impl Debug for InputMediaAnimation
Source§impl Default for InputMediaAnimation
impl Default for InputMediaAnimation
Source§fn default() -> InputMediaAnimation
fn default() -> InputMediaAnimation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputMediaAnimation
impl<'de> Deserialize<'de> for InputMediaAnimation
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 InputMediaAnimation
impl PartialEq for InputMediaAnimation
Source§fn eq(&self, other: &InputMediaAnimation) -> bool
fn eq(&self, other: &InputMediaAnimation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for InputMediaAnimation
impl PartialOrd for InputMediaAnimation
Source§impl Serialize for InputMediaAnimation
impl Serialize for InputMediaAnimation
impl StructuralPartialEq for InputMediaAnimation
Auto Trait Implementations§
impl Freeze for InputMediaAnimation
impl RefUnwindSafe for InputMediaAnimation
impl Send for InputMediaAnimation
impl Sync for InputMediaAnimation
impl Unpin for InputMediaAnimation
impl UnsafeUnpin for InputMediaAnimation
impl UnwindSafe for InputMediaAnimation
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