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

Setters for fields of BanChatMember

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 until_date<T>(self, value: T) -> Selfwhere T: Into<DateTime<Utc>>,

Setter for until_date field.

source

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

Setter for revoke_messages field.

Implementors§

source§

impl<P> BanChatMemberSetters for Pwhere P: HasPayload<Payload = BanChatMember>,