[][src]Struct tbot::methods::SendDice

#[must_use = "methods do nothing unless turned into a future"]pub struct SendDice<'a> { /* fields omitted */ }

Sends a dice.

Reflects the sendDice method.


impl<'a> SendDice<'a>[src]

pub fn kind(self, kind: Kind) -> Self[src]

Сonfigures the dice's kind. Reflects the emoji parameter.

pub fn notification(self, state: NotificationState) -> Self[src]

Configures if the message will be sent silently. Reflects the disable_notification parameter.

pub fn reply_to_message_id(self, id: Id) -> Self[src]

Configures which message this text message is sent in reply to. Reflects the reply_to_message_id parameter.

pub fn reply_markup(self, markup: impl Into<Any<'a>>) -> Self[src]

Configures a keyboard for the message. Reflects the reply_markup parameter.

impl<'_> SendDice<'_>[src]

pub async fn call(self) -> Result<Message, MethodCall>[src]

Calls the method.

Trait Implementations

impl<'a> Clone for SendDice<'a>[src]

impl<'a> Debug for SendDice<'a>[src]

impl<'a> Serialize for SendDice<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for SendDice<'a>

impl<'a> Send for SendDice<'a>

impl<'a> Sync for SendDice<'a>

impl<'a> Unpin for SendDice<'a>

impl<'a> !UnwindSafe for SendDice<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithSubscriber for T[src]