[][src]Struct twitchchat::messages::Mode

pub struct Mode<'t> {
    pub channel: Cow<'t, str>,
    pub status: ModeStatus,
    pub name: Cow<'t, str>,
}

When a user gains or loses moderator (operator) status in a channel.

Fields

channel: Cow<'t, str>

The channel this event happened on

status: ModeStatus

The status. gained, or lost

name: Cow<'t, str>

The user this applies too

Trait Implementations

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

type Owned = Mode<'static>

The owned type

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

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

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

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

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

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

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

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

Auto Trait Implementations

impl<'t> RefUnwindSafe for Mode<'t>

impl<'t> Send for Mode<'t>

impl<'t> Sync for Mode<'t>

impl<'t> Unpin for Mode<'t>

impl<'t> UnwindSafe for Mode<'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: 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.