pub trait RestrictChatMemberSetters: HasPayload<Payload = RestrictChatMember> + Sized {
    // Provided methods
    fn chat_id<T>(self, value: T) -> Self
       where T: Into<Recipient> { ... }
    fn user_id(self, value: UserId) -> Self { ... }
    fn permissions(self, value: ChatPermissions) -> Self { ... }
    fn until_date<T>(self, value: T) -> Self
       where T: Into<DateTime<Utc>> { ... }
}
Expand description

Setters for fields of RestrictChatMember

Provided Methods§

source

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

Setter for chat_id field.

source

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

Setter for user_id field.

source

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

Setter for permissions field.

source

fn until_date<T>(self, value: T) -> Selfwhere T: Into<DateTime<Utc>>,

Setter for until_date field.

Implementors§