Skip to main content

SetGameScoreSetters

Trait SetGameScoreSetters 

Source
pub trait SetGameScoreSetters: HasPayload<Payload = SetGameScore> + Sized {
    // Provided methods
    fn user_id(self, value: UserId) -> Self { ... }
    fn score(self, value: u64) -> Self { ... }
    fn chat_id(self, value: u32) -> Self { ... }
    fn message_id(self, value: MessageId) -> Self { ... }
    fn force(self, value: bool) -> Self { ... }
    fn disable_edit_message(self, value: bool) -> Self { ... }
}
Expand description

Setters for fields of SetGameScore

Provided Methods§

Source

fn user_id(self, value: UserId) -> Self

Setter for user_id field.

Source

fn score(self, value: u64) -> Self

Setter for score field.

Source

fn chat_id(self, value: u32) -> Self

Setter for chat_id field.

Source

fn message_id(self, value: MessageId) -> Self

Setter for message_id field.

Source

fn force(self, value: bool) -> Self

Setter for force field.

Source

fn disable_edit_message(self, value: bool) -> Self

Setter for disable_edit_message field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<P> SetGameScoreSetters for P
where P: HasPayload<Payload = SetGameScore>,