Struct trovo::ChannelInfo
source · [−]pub struct ChannelInfo {Show 18 fields
pub is_live: bool,
pub category_id: String,
pub category_name: String,
pub live_title: String,
pub audi_type: AudienceType,
pub language_code: String,
pub thumbnail: String,
pub current_viewers: u64,
pub followers: u64,
pub streamer_info: String,
pub profile_pic: String,
pub channel_url: String,
pub created_at: DateTime<Utc>,
pub subscriber_num: u64,
pub username: String,
pub social_links: Vec<SocialLink>,
pub started_at: DateTime<Utc>,
pub ended_at: DateTime<Utc>,
}
Expand description
Response for the get users api
Fields
is_live: bool
If the channel is currently live streaming.
category_id: String
The id of the game category.
category_name: String
Text name of the category.
live_title: String
Current title of the channel.
audi_type: AudienceType
Audience type.
language_code: String
Language of the channel in in ISO 2 (2 letter language code)
thumbnail: String
URL of the thumbnail. Empty thumbnail means the thumbnail from the previous stream has expired.
current_viewers: u64
Number of current viewers
followers: u64
Number of followers
streamer_info: String
Profile information of the streamer
profile_pic: String
Url of the streamer’s profile picture
channel_url: String
URL of the channel
created_at: DateTime<Utc>
Timestamp of the streamer creation time
subscriber_num: u64
Count of subscribers
username: String
Username of the channel’s streamer. Also the last part of the channel url.
Social media links of the streamer.
started_at: DateTime<Utc>
The latest streaming start time of a given channel.
ended_at: DateTime<Utc>
The latest streaming end time of a given channel.
Trait Implementations
sourceimpl Debug for ChannelInfo
impl Debug for ChannelInfo
sourceimpl<'de> Deserialize<'de> for ChannelInfo
impl<'de> Deserialize<'de> for ChannelInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChannelInfo
impl Send for ChannelInfo
impl Sync for ChannelInfo
impl Unpin for ChannelInfo
impl UnwindSafe for ChannelInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more