pub struct PromoteChatMember { /* private fields */ }Expand description
Builder for the promoteChatMember method.
Implementations§
Source§impl PromoteChatMember
impl PromoteChatMember
Sourcepub fn can_manage_chat(self, v: bool) -> Self
pub fn can_manage_chat(self, v: bool) -> Self
Allows the admin to manage the chat.
Sourcepub fn can_delete_messages(self, v: bool) -> Self
pub fn can_delete_messages(self, v: bool) -> Self
Allows the admin to delete messages of other users.
Sourcepub fn can_manage_video_chats(self, v: bool) -> Self
pub fn can_manage_video_chats(self, v: bool) -> Self
Allows the admin to manage video chats.
Sourcepub fn can_restrict_members(self, v: bool) -> Self
pub fn can_restrict_members(self, v: bool) -> Self
Allows the admin to restrict, ban, or unban chat members.
Sourcepub fn can_promote_members(self, v: bool) -> Self
pub fn can_promote_members(self, v: bool) -> Self
Allows the admin to add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by the user).
Sourcepub fn can_change_info(self, v: bool) -> Self
pub fn can_change_info(self, v: bool) -> Self
Allows the admin to change the chat title, photo, and other settings.
Sourcepub fn can_invite_users(self, v: bool) -> Self
pub fn can_invite_users(self, v: bool) -> Self
Allows the admin to invite new users to the chat.
Sourcepub fn can_pin_messages(self, v: bool) -> Self
pub fn can_pin_messages(self, v: bool) -> Self
Allows the admin to pin messages.
Sourcepub fn can_manage_topics(self, v: bool) -> Self
pub fn can_manage_topics(self, v: bool) -> Self
Allows the admin to manage forum topics.
Sourcepub fn can_post_stories(self, v: bool) -> Self
pub fn can_post_stories(self, v: bool) -> Self
Allows the admin to post stories.
Sourcepub fn can_manage_direct_messages(self, v: bool) -> Self
pub fn can_manage_direct_messages(self, v: bool) -> Self
Allows the admin to manage direct messages.
Allows the admin to manage tags.
Trait Implementations§
Source§impl IntoFuture for PromoteChatMember
impl IntoFuture for PromoteChatMember
Source§type IntoFuture = Pin<Box<dyn Future<Output = <PromoteChatMember as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <PromoteChatMember as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PromoteChatMember
impl !UnwindSafe for PromoteChatMember
impl Freeze for PromoteChatMember
impl Send for PromoteChatMember
impl Sync for PromoteChatMember
impl Unpin for PromoteChatMember
impl UnsafeUnpin for PromoteChatMember
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more