Trait SetChatPermissionsSetters

Source
pub trait SetChatPermissionsSetters: HasPayload<Payload = SetChatPermissions> + Sized {
    // Provided methods
    fn chat_id<T>(self, value: T) -> Self
       where T: Into<Recipient> { ... }
    fn permissions(self, value: ChatPermissions) -> Self { ... }
    fn use_independent_chat_permissions(self, value: bool) -> Self { ... }
}
Expand description

Setters for fields of SetChatPermissions

Provided Methods§

Source

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.

Source

fn permissions(self, value: ChatPermissions) -> Self

Setter for permissions field.

Source

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

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§