pub struct PromoteChatMemberBuilder { /* private fields */ }Expand description
Builder for the PromoteChatMember structure
Implementations§
Source§impl PromoteChatMemberBuilder
impl PromoteChatMemberBuilder
Sourcepub fn new(chat_id: ChatId, user_id: i64) -> Self
pub fn new(chat_id: ChatId, user_id: i64) -> Self
Instantiate the builder with the fields chat_id, user_id, is_anonymous, can_manage_chat, can_post_messages, can_edit_messages, can_delete_messages, can_manage_video_chats, can_restrict_members, can_promote_members, can_change_info, can_invite_users, can_pin_messages, can_manage_topics
Sourcepub fn is_anonymous(self, val: bool) -> Self
pub fn is_anonymous(self, val: bool) -> Self
Set the field is_anonymous to the given value
Sourcepub fn can_manage_chat(self, val: bool) -> Self
pub fn can_manage_chat(self, val: bool) -> Self
Set the field can_manage_chat to the given value
Sourcepub fn can_post_messages(self, val: bool) -> Self
pub fn can_post_messages(self, val: bool) -> Self
Set the field can_post_messages to the given value
Sourcepub fn can_edit_messages(self, val: bool) -> Self
pub fn can_edit_messages(self, val: bool) -> Self
Set the field can_edit_messages to the given value
Sourcepub fn can_delete_messages(self, val: bool) -> Self
pub fn can_delete_messages(self, val: bool) -> Self
Set the field can_delete_messages to the given value
Sourcepub fn can_manage_video_chats(self, val: bool) -> Self
pub fn can_manage_video_chats(self, val: bool) -> Self
Set the field can_manage_video_chats to the given value
Sourcepub fn can_restrict_members(self, val: bool) -> Self
pub fn can_restrict_members(self, val: bool) -> Self
Set the field can_restrict_members to the given value
Sourcepub fn can_promote_members(self, val: bool) -> Self
pub fn can_promote_members(self, val: bool) -> Self
Set the field can_promote_members to the given value
Sourcepub fn can_change_info(self, val: bool) -> Self
pub fn can_change_info(self, val: bool) -> Self
Set the field can_change_info to the given value
Sourcepub fn can_invite_users(self, val: bool) -> Self
pub fn can_invite_users(self, val: bool) -> Self
Set the field can_invite_users to the given value
Sourcepub fn can_pin_messages(self, val: bool) -> Self
pub fn can_pin_messages(self, val: bool) -> Self
Set the field can_pin_messages to the given value
Sourcepub fn can_manage_topics(self, val: bool) -> Self
pub fn can_manage_topics(self, val: bool) -> Self
Set the field can_manage_topics to the given value