Struct twitch_api2::tmi::Host[][src]

pub struct Host {
    pub host_id: UserId,
    pub target_id: Option<UserId>,
    pub host_login: Option<Nickname>,
    pub target_login: Option<Nickname>,
    pub host_display_name: Option<Nickname>,
    pub target_display_name: Option<Nickname>,
}
This is supported on crate feature tmi only.

A host record returned by TMI at https://tmi.twitch.tv/hosts

See TmiClient::get_hosts

Fields

host_id: UserId

User ID of the hosting channel

target_id: Option<UserId>

User ID of the hosted channel. Will be missing if the given channel is not hosting anyone.

host_login: Option<Nickname>

Login of the hosting channel, if requested with include_logins = true

target_login: Option<Nickname>

Login of the hosted channel, if requested with include_logins = true

host_display_name: Option<Nickname>

Display name of the hosting channel, if requested with include_logins = true

target_display_name: Option<Nickname>

Display name of the hosted channel, if requested with include_logins = true

Trait Implementations

impl Debug for Host[src]

impl<'de> Deserialize<'de> for Host[src]

impl Serialize for Host[src]

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]