pub struct Banned {
pub until_date: UntilDate,
}
Expand description
User that was banned in the chat and can’t return to it or view chat
messages. This struct is part of the ChatMemberKind
enum.
Fields§
§until_date: UntilDate
Date when restrictions will be lifted for this user.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Banned
impl<'de> Deserialize<'de> for Banned
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Banned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Banned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Banned> for Banned
impl PartialEq<Banned> for Banned
source§impl Serialize for Banned
impl Serialize for Banned
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for Banned
impl StructuralEq for Banned
impl StructuralPartialEq for Banned
Auto Trait Implementations§
impl RefUnwindSafe for Banned
impl Send for Banned
impl Sync for Banned
impl Unpin for Banned
impl UnwindSafe for Banned
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.