Enum twitch_irc::message::ClearChatAction  
source · [−]pub enum ClearChatAction {
    ChatCleared,
    UserBanned {
        user_login: String,
        user_id: String,
    },
    UserTimedOut {
        user_login: String,
        user_id: String,
        timeout_length: Duration,
    },
}Expand description
One of the three types of meaning a CLEARCHAT message can have.
Variants
ChatCleared
A moderator cleared the entire chat.
UserBanned
Fields
user_login: StringLogin name of the user that was banned
user_id: StringID of the user that was banned
A user was permanently banned.
UserTimedOut
Fields
user_login: StringLogin name of the user that was banned
user_id: StringID of the user that was banned
timeout_length: DurationDuration that the user was timed out for.
A user was temporarily banned (timed out).
Trait Implementations
sourceimpl Clone for ClearChatAction
 
impl Clone for ClearChatAction
sourcefn clone(&self) -> ClearChatAction
 
fn clone(&self) -> ClearChatAction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresourceimpl Debug for ClearChatAction
 
impl Debug for ClearChatAction
sourceimpl<'de> Deserialize<'de> for ClearChatAction
 
impl<'de> Deserialize<'de> for ClearChatAction
sourcefn 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
sourceimpl PartialEq<ClearChatAction> for ClearChatAction
 
impl PartialEq<ClearChatAction> for ClearChatAction
sourcefn eq(&self, other: &ClearChatAction) -> bool
 
fn eq(&self, other: &ClearChatAction) -> bool
sourceimpl Serialize for ClearChatAction
 
impl Serialize for ClearChatAction
impl Eq for ClearChatAction
impl StructuralEq for ClearChatAction
impl StructuralPartialEq for ClearChatAction
Auto Trait Implementations
impl RefUnwindSafe for ClearChatAction
impl Send for ClearChatAction
impl Sync for ClearChatAction
impl Unpin for ClearChatAction
impl UnwindSafe for ClearChatAction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.