pub trait PromoteChatMemberSetters: HasPayload<Payload = PromoteChatMember> + Sized {
Show 14 methods // Provided methods fn chat_id<T>(self, value: T) -> Self where T: Into<Recipient> { ... } fn user_id(self, value: UserId) -> Self { ... } fn is_anonymous(self, value: bool) -> Self { ... } fn can_manage_chat(self, value: bool) -> Self { ... } fn can_post_messages(self, value: bool) -> Self { ... } fn can_edit_messages(self, value: bool) -> Self { ... } fn can_delete_messages(self, value: bool) -> Self { ... } fn can_manage_video_chats(self, value: bool) -> Self { ... } fn can_restrict_members(self, value: bool) -> Self { ... } fn can_promote_members(self, value: bool) -> Self { ... } fn can_change_info(self, value: bool) -> Self { ... } fn can_invite_users(self, value: bool) -> Self { ... } fn can_pin_messages(self, value: bool) -> Self { ... } fn can_manage_topics(self, value: bool) -> Self { ... }
}
Expand description

Setters for fields of PromoteChatMember

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 is_anonymous(self, value: bool) -> Self

Setter for is_anonymous field.

source

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

Setter for can_manage_chat field.

source

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

Setter for can_post_messages field.

source

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

Setter for can_edit_messages field.

source

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

Setter for can_delete_messages field.

source

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

Setter for can_manage_video_chats field.

source

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

Setter for can_restrict_members field.

source

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

Setter for can_promote_members field.

source

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

Setter for can_change_info field.

source

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

Setter for can_invite_users field.

source

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

Setter for can_pin_messages field.

source

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

Setter for can_manage_topics field.

Implementors§