[][src]Struct tbot::methods::SetMessageGameScore

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

Sets a user's new high score in a game sent by the bot itself.

Reflects the setGameScore method.

Methods

impl<'a, C> SetMessageGameScore<'a, C>[src]

pub fn force(self, is_forced: bool) -> Self[src]

Configures if the score may go down. Reflects the force parameter.

pub fn disable_edit_message(self, is_disabled: bool) -> Self[src]

Configures if the message should not be edited immediately. Reflects the disable_edit_message parameter.

impl<'_, C: Connector> SetMessageGameScore<'_, C>[src]

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

Calls the method.

Trait Implementations

impl<'a, C: Clone> Clone for SetMessageGameScore<'a, C>[src]

impl<'a, C: Debug> Debug for SetMessageGameScore<'a, C>[src]

impl<'a, C> Serialize for SetMessageGameScore<'a, C>[src]

Auto Trait Implementations

impl<'a, C> !RefUnwindSafe for SetMessageGameScore<'a, C>

impl<'a, C> Send for SetMessageGameScore<'a, C> where
    C: Sync

impl<'a, C> Sync for SetMessageGameScore<'a, C> where
    C: Sync

impl<'a, C> Unpin for SetMessageGameScore<'a, C>

impl<'a, C> !UnwindSafe for SetMessageGameScore<'a, C>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.