[][src]Struct twitchchat::messages::ClearChat

pub struct ClearChat<'t> {
    pub tags: Tags<'t>,
    pub channel: Cow<'t, str>,
    pub name: Option<Cow<'t, str>>,
}

When a user's message(s) have been purged.

Typically after a user is banned from chat or timed out

Fields

tags: Tags<'t>

Tags attached to the message

channel: Cow<'t, str>

The channel this event happened on

name: Option<Cow<'t, str>>

The user, if any, that was being purged

Implementations

impl<'t> ClearChat<'t>[src]

pub fn ban_duration(&self) -> Option<u64>[src]

(Optional) Duration of the timeout, in seconds. If omitted, the ban is permanent.

Trait Implementations

impl<'t> AsOwned for ClearChat<'t>[src]

type Owned = ClearChat<'static>

The owned type

impl<'t> Clone for ClearChat<'t>[src]

impl<'t> Debug for ClearChat<'t>[src]

impl<'de, 't> Deserialize<'de> for ClearChat<'t>[src]

impl<'a: 't, 't> Extract<'a, &'a ClearChat<'t>> for &'a AllCommands<'t>[src]

impl<'t> From<ClearChat<'t>> for AllCommands<'t>[src]

impl<'a: 't, 't> Parse<&'a Message<'t>> for ClearChat<'t>[src]

impl<'t> PartialEq<ClearChat<'t>> for ClearChat<'t>[src]

impl<'t> Serialize for ClearChat<'t>[src]

impl<'t> StructuralPartialEq for ClearChat<'t>[src]

Auto Trait Implementations

impl<'t> RefUnwindSafe for ClearChat<'t>

impl<'t> Send for ClearChat<'t>

impl<'t> Sync for ClearChat<'t>

impl<'t> Unpin for ClearChat<'t>

impl<'t> UnwindSafe for ClearChat<'t>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.