pub struct ChatMemberBanned {
pub user: User,
pub until_date: i64,
}
Expand description
Represents a chat member that was banned in the chat and can’t return to the chat or view chat messages.
Fields§
§user: User
Information about the user
until_date: i64
Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned forever
Implementations§
Trait Implementations§
Source§impl Clone for ChatMemberBanned
impl Clone for ChatMemberBanned
Source§fn clone(&self) -> ChatMemberBanned
fn clone(&self) -> ChatMemberBanned
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 ChatMemberBanned
impl Debug for ChatMemberBanned
Source§impl<'de> Deserialize<'de> for ChatMemberBanned
impl<'de> Deserialize<'de> for ChatMemberBanned
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
Auto Trait Implementations§
impl Freeze for ChatMemberBanned
impl RefUnwindSafe for ChatMemberBanned
impl Send for ChatMemberBanned
impl Sync for ChatMemberBanned
impl Unpin for ChatMemberBanned
impl UnwindSafe for ChatMemberBanned
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