pub struct SetChatMemberStatus {
pub chat_id: i64,
pub user_id: i32,
pub status: ChatMemberStatus,
}
Expand description
Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for adding new members to the chat; instead, use addChatMember. The chat member status will not be changed until it has been synchronized with the server
Fields§
§chat_id: i64
Chat identifier
user_id: i32
User identifier
status: ChatMemberStatus
The new status of the member in the chat
Trait Implementations§
Source§impl Clone for SetChatMemberStatus
impl Clone for SetChatMemberStatus
Source§fn clone(&self) -> SetChatMemberStatus
fn clone(&self) -> SetChatMemberStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SetChatMemberStatus
impl Debug for SetChatMemberStatus
Source§impl<'de> Deserialize<'de> for SetChatMemberStatus
impl<'de> Deserialize<'de> for SetChatMemberStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for SetChatMemberStatus
impl Method for SetChatMemberStatus
Auto Trait Implementations§
impl Freeze for SetChatMemberStatus
impl RefUnwindSafe for SetChatMemberStatus
impl Send for SetChatMemberStatus
impl Sync for SetChatMemberStatus
impl Unpin for SetChatMemberStatus
impl UnwindSafe for SetChatMemberStatus
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