pub struct SendAnimationBuilder<'a> { /* private fields */ }Expand description
Builder for the [sendAnimation] API method.
Implementations§
Source§impl<'a> SendAnimationBuilder<'a>
impl<'a> SendAnimationBuilder<'a>
Sourcepub fn parse_mode(self, val: impl Into<String>) -> Self
pub fn parse_mode(self, val: impl Into<String>) -> Self
Sets the parse_mode parameter.
Sourcepub fn caption_entities(self, val: Vec<MessageEntity>) -> Self
pub fn caption_entities(self, val: Vec<MessageEntity>) -> Self
Sets the caption_entities parameter.
Sourcepub fn has_spoiler(self, val: bool) -> Self
pub fn has_spoiler(self, val: bool) -> Self
Sets the has_spoiler parameter.
Sourcepub fn show_caption_above_media(self, val: bool) -> Self
pub fn show_caption_above_media(self, val: bool) -> Self
Sets the show_caption_above_media parameter.
Sourcepub fn disable_notification(self, val: bool) -> Self
pub fn disable_notification(self, val: bool) -> Self
Sets the disable_notification parameter.
Sourcepub fn protect_content(self, val: bool) -> Self
pub fn protect_content(self, val: bool) -> Self
Sets the protect_content parameter.
Sourcepub fn reply_parameters(self, val: ReplyParameters) -> Self
pub fn reply_parameters(self, val: ReplyParameters) -> Self
Sets the reply_parameters parameter.
Sourcepub fn reply_markup(self, val: Value) -> Self
pub fn reply_markup(self, val: Value) -> Self
Sets the reply_markup parameter.
Sourcepub fn message_thread_id(self, val: i64) -> Self
pub fn message_thread_id(self, val: i64) -> Self
Sets the message_thread_id parameter.
Sourcepub fn business_connection_id(self, val: impl Into<String>) -> Self
pub fn business_connection_id(self, val: impl Into<String>) -> Self
Sets the business_connection_id parameter.
Sourcepub fn message_effect_id(self, val: impl Into<String>) -> Self
pub fn message_effect_id(self, val: impl Into<String>) -> Self
Sets the message_effect_id parameter.
Sourcepub fn allow_paid_broadcast(self, val: bool) -> Self
pub fn allow_paid_broadcast(self, val: bool) -> Self
Sets the allow_paid_broadcast parameter.
Sourcepub fn direct_messages_topic_id(self, val: i64) -> Self
pub fn direct_messages_topic_id(self, val: i64) -> Self
Sets the direct_messages_topic_id parameter.
Sourcepub fn suggested_post_parameters(self, val: SuggestedPostParameters) -> Self
pub fn suggested_post_parameters(self, val: SuggestedPostParameters) -> Self
Sets the suggested_post_parameters parameter.
Trait Implementations§
Source§impl<'a> IntoFuture for SendAnimationBuilder<'a>
impl<'a> IntoFuture for SendAnimationBuilder<'a>
Source§type Output = Result<Message, TelegramError>
type Output = Result<Message, TelegramError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SendAnimationBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <SendAnimationBuilder<'a> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for SendAnimationBuilder<'a>
impl<'a> !RefUnwindSafe for SendAnimationBuilder<'a>
impl<'a> Send for SendAnimationBuilder<'a>
impl<'a> Sync for SendAnimationBuilder<'a>
impl<'a> Unpin for SendAnimationBuilder<'a>
impl<'a> UnsafeUnpin for SendAnimationBuilder<'a>
impl<'a> !UnwindSafe for SendAnimationBuilder<'a>
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