[][src]Struct twitchchat::messages::HostTarget

pub struct HostTarget<T = String> where
    T: StringMarker
{ pub source: T, pub viewers: Option<usize>, pub kind: HostTargetKind<T>, }

When a channel starts to host another channel

Fields

source: T

Source channel (the one doing the hosting).

viewers: Option<usize>

How many viewers are going along

kind: HostTargetKind<T>

What kind of event this was. e.g. Start or End

Trait Implementations

impl<T: Clone> Clone for HostTarget<T> where
    T: StringMarker
[src]

impl<'a, T> Conversion<'a> for HostTarget<T> where
    T: StringMarker + Conversion<'a>,
    <T as Conversion<'a>>::Borrowed: StringMarker,
    <T as Conversion<'a>>::Owned: StringMarker
[src]

type Owned = HostTarget<T::Owned>

The owned type

type Borrowed = HostTarget<T::Borrowed>

The borrowed type

impl<T: Debug> Debug for HostTarget<T> where
    T: StringMarker
[src]

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

impl<'a> From<HostTarget<&'a str>> for HostTarget<String>[src]

impl<'a> Parse<&'a Message<&'a str>> for HostTarget<&'a str>[src]

impl<'a> Parse<&'a Message<&'a str>> for HostTarget<String>[src]

impl<T: PartialEq> PartialEq<HostTarget<T>> for HostTarget<T> where
    T: StringMarker
[src]

impl<T> Serialize for HostTarget<T> where
    T: StringMarker,
    T: Serialize
[src]

impl<T> StructuralPartialEq for HostTarget<T> where
    T: StringMarker
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for HostTarget<T> where
    T: RefUnwindSafe

impl<T> Send for HostTarget<T> where
    T: Send

impl<T> Sync for HostTarget<T> where
    T: Sync

impl<T> Unpin for HostTarget<T> where
    T: Unpin

impl<T> UnwindSafe for HostTarget<T> where
    T: UnwindSafe

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.