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
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<'de> Deserialize<'de> for Host
[src]
impl<'de> Deserialize<'de> for Host
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for Host
impl RefUnwindSafe for Host
impl UnwindSafe for Host
impl UnwindSafe for Host
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,