pub trait PromoteChatMemberSetters: HasPayload<Payload = PromoteChatMember> + Sized {
Show 17 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_post_stories(self, value: bool) -> Self { ... }
fn can_edit_stories(self, value: bool) -> Self { ... }
fn can_delete_stories(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§
sourcefn is_anonymous(self, value: bool) -> Self
fn is_anonymous(self, value: bool) -> Self
Setter for is_anonymous
field.
sourcefn can_manage_chat(self, value: bool) -> Self
fn can_manage_chat(self, value: bool) -> Self
Setter for can_manage_chat
field.
sourcefn can_post_messages(self, value: bool) -> Self
fn can_post_messages(self, value: bool) -> Self
Setter for can_post_messages
field.
sourcefn can_edit_messages(self, value: bool) -> Self
fn can_edit_messages(self, value: bool) -> Self
Setter for can_edit_messages
field.
sourcefn can_delete_messages(self, value: bool) -> Self
fn can_delete_messages(self, value: bool) -> Self
Setter for can_delete_messages
field.
sourcefn can_post_stories(self, value: bool) -> Self
fn can_post_stories(self, value: bool) -> Self
Setter for can_post_stories
field.
sourcefn can_edit_stories(self, value: bool) -> Self
fn can_edit_stories(self, value: bool) -> Self
Setter for can_edit_stories
field.
sourcefn can_delete_stories(self, value: bool) -> Self
fn can_delete_stories(self, value: bool) -> Self
Setter for can_delete_stories
field.
sourcefn can_manage_video_chats(self, value: bool) -> Self
fn can_manage_video_chats(self, value: bool) -> Self
Setter for can_manage_video_chats
field.
sourcefn can_restrict_members(self, value: bool) -> Self
fn can_restrict_members(self, value: bool) -> Self
Setter for can_restrict_members
field.
sourcefn can_promote_members(self, value: bool) -> Self
fn can_promote_members(self, value: bool) -> Self
Setter for can_promote_members
field.
sourcefn can_change_info(self, value: bool) -> Self
fn can_change_info(self, value: bool) -> Self
Setter for can_change_info
field.
sourcefn can_invite_users(self, value: bool) -> Self
fn can_invite_users(self, value: bool) -> Self
Setter for can_invite_users
field.
sourcefn can_pin_messages(self, value: bool) -> Self
fn can_pin_messages(self, value: bool) -> Self
Setter for can_pin_messages
field.
sourcefn can_manage_topics(self, value: bool) -> Self
fn can_manage_topics(self, value: bool) -> Self
Setter for can_manage_topics
field.
Object Safety§
This trait is not object safe.