Trait SavePreparedInlineMessageSetters

Source
pub trait SavePreparedInlineMessageSetters: HasPayload<Payload = SavePreparedInlineMessage> + Sized {
    // Provided methods
    fn user_id(self, value: UserId) -> Self { ... }
    fn result(self, value: InlineQueryResult) -> Self { ... }
    fn allow_user_chats(self, value: bool) -> Self { ... }
    fn allow_bot_chats(self, value: bool) -> Self { ... }
    fn allow_group_chats(self, value: bool) -> Self { ... }
    fn allow_channel_chats(self, value: bool) -> Self { ... }
}
Expand description

Setters for fields of SavePreparedInlineMessage

Provided Methods§

Source

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

Setter for user_id field.

Source

fn result(self, value: InlineQueryResult) -> Self

Setter for result field.

Source

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

Setter for allow_user_chats field.

Source

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

Setter for allow_bot_chats field.

Source

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

Setter for allow_group_chats field.

Source

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

Setter for allow_channel_chats field.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§