pub struct Stream {
pub custom_tags: Vec<String>,
pub is_live: bool,
pub is_mature: bool,
pub key: String,
pub language: String,
pub start_time: String,
pub thumbnail: Option<String>,
pub url: String,
pub viewer_count: u32,
}Expand description
Live stream information
Fields§
Custom tags set by the streamer
is_live: boolWhether the stream is currently live
is_mature: boolWhether the stream is marked as mature content
key: StringStream key identifier
language: StringStream language code (e.g., “en”)
start_time: StringWhen the stream started (ISO 8601)
thumbnail: Option<String>Stream thumbnail URL
url: StringStream URL
viewer_count: u32Current viewer count
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stream
impl<'de> Deserialize<'de> for Stream
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 Stream
impl RefUnwindSafe for Stream
impl Send for Stream
impl Sync for Stream
impl Unpin for Stream
impl UnwindSafe for Stream
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