pub struct PromoteChatMember<'a> { /* private fields */ }
Expand description

Promotes a chat member to an admin.

Reflects the promoteChatMember method.

Implementations§

Configures if the user will be able to perform administrative actions. Reflects the can_manage_chat parameter.

Configures if the user will be able to change the group’s information. Reflects the can_change_info parameter.

source

pub const fn can_post_messages(self, can_post: bool) -> Self

Configures if the user will be able to post messages, if the chat is a channel. Reflects the can_post_messages parameter.

Configures if the user will be able to edit messages, if the chat is a channel. Reflects the can_edit_messages parameter.

Configures if the user will be able to delete messages. Reflects the can_delete_messages parameter.

Configures if the user will be able to invite new users. Reflects the can_invite_users parameter.

Configures if the user will be able to restrict members. Reflects the can_restrict_members parameter.

Configures if the user will be able to pin messages. Reflects the can_pin_messages parameter.

Configures if the user will be able to promote other members. Reflects the can_promote_members parameter.

Configures if the user will be able to manage voice chats. Reflects the can_manage_voice_chats parameter.

Configures if the user will be anonymous. Reflects the is_anonymous parameter.

Calls the method.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more