pub struct LivestreamInfo {
pub id: u64,
pub slug: Option<String>,
pub channel_id: Option<u64>,
pub session_title: Option<String>,
pub is_live: bool,
pub is_mature: bool,
pub language: Option<String>,
pub viewer_count: u64,
pub start_time: Option<String>,
pub tags: Vec<String>,
pub categories: Vec<LivestreamCategory>,
}Expand description
Current livestream information.
Fields§
§id: u64Livestream ID
slug: Option<String>Stream slug
channel_id: Option<u64>Channel ID
session_title: Option<String>Stream title
is_live: boolWhether the stream is currently live
is_mature: boolWhether the stream is marked as mature
language: Option<String>Stream language (e.g., “English”)
viewer_count: u64Current viewer count
start_time: Option<String>When the stream started (ISO 8601)
Stream tags
categories: Vec<LivestreamCategory>Stream categories
Trait Implementations§
Source§impl Clone for LivestreamInfo
impl Clone for LivestreamInfo
Source§fn clone(&self) -> LivestreamInfo
fn clone(&self) -> LivestreamInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LivestreamInfo
impl Debug for LivestreamInfo
Source§impl<'de> Deserialize<'de> for LivestreamInfo
impl<'de> Deserialize<'de> for LivestreamInfo
Source§fn 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 Freeze for LivestreamInfo
impl RefUnwindSafe for LivestreamInfo
impl Send for LivestreamInfo
impl Sync for LivestreamInfo
impl Unpin for LivestreamInfo
impl UnsafeUnpin for LivestreamInfo
impl UnwindSafe for LivestreamInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more