pub struct AddChatMember {
pub chat_id: i64,
pub user_id: i32,
pub forward_limit: i32,
}
Expand description
Adds a new member to a chat. Members can’t be added to private or secret chats. Members will not be added until the chat state has been synchronized with the server
Fields§
§chat_id: i64
Chat identifier
user_id: i32
Identifier of the user
forward_limit: i32
The number of earlier messages from the chat to be forwarded to the new member; up to 300. Ignored for supergroups and channels
Trait Implementations§
Source§impl Clone for AddChatMember
impl Clone for AddChatMember
Source§fn clone(&self) -> AddChatMember
fn clone(&self) -> AddChatMember
Returns a copy 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 AddChatMember
impl Debug for AddChatMember
Source§impl<'de> Deserialize<'de> for AddChatMember
impl<'de> Deserialize<'de> for AddChatMember
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 AddChatMember
impl Method for AddChatMember
Auto Trait Implementations§
impl Freeze for AddChatMember
impl RefUnwindSafe for AddChatMember
impl Send for AddChatMember
impl Sync for AddChatMember
impl Unpin for AddChatMember
impl UnwindSafe for AddChatMember
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