pub struct SendDice { /* private fields */ }Expand description
Builder for the sendDice method.
Implementations§
Source§impl SendDice
impl SendDice
Sourcepub fn emoji(self, e: impl Into<String>) -> Self
pub fn emoji(self, e: impl Into<String>) -> Self
The dice/emoji to animate. One of 🎲 🎯 🏀 ⚽ 🎳 🎰.
Sourcepub fn message_thread_id(self, id: i64) -> Self
pub fn message_thread_id(self, id: i64) -> Self
Forum topic thread ID.
Sourcepub fn direct_messages_topic_id(self, id: i64) -> Self
pub fn direct_messages_topic_id(self, id: i64) -> Self
Identifier of a direct messages chat topic.
Sourcepub fn disable_notification(self, v: bool) -> Self
pub fn disable_notification(self, v: bool) -> Self
Sends the message silently — the recipient receives no notification sound.
Sourcepub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
pub fn reply_markup(self, m: impl Into<ReplyMarkup>) -> Self
Attaches a reply markup (inline keyboard, reply keyboard, etc.).
Trait Implementations§
Source§impl IntoFuture for SendDice
impl IntoFuture for SendDice
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SendDice as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <SendDice as IntoFuture>::Output> + Send>>
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 !RefUnwindSafe for SendDice
impl !UnwindSafe for SendDice
impl Freeze for SendDice
impl Send for SendDice
impl Sync for SendDice
impl Unpin for SendDice
impl UnsafeUnpin for SendDice
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