pub struct Livestream {
pub broadcaster_user_id: u64,
pub category: Option<LivestreamCategoryInfo>,
pub channel_id: u64,
pub custom_tags: Vec<String>,
pub has_mature_content: bool,
pub language: String,
pub profile_picture: Option<String>,
pub slug: String,
pub started_at: String,
pub stream_title: String,
pub thumbnail: Option<String>,
pub viewer_count: u64,
}Expand description
A currently live stream with category and broadcaster info
Returned by the GET /livestreams endpoint.
Fields§
§broadcaster_user_id: u64The broadcaster’s user ID
category: Option<LivestreamCategoryInfo>Stream category info
channel_id: u64Channel ID
Custom tags set by the streamer
has_mature_content: boolWhether the stream is marked as mature
language: StringStream language code (e.g., “en”)
profile_picture: Option<String>Broadcaster’s profile picture URL
slug: StringChannel slug (username)
started_at: StringWhen the stream started (ISO 8601)
stream_title: StringStream title
thumbnail: Option<String>Thumbnail URL
viewer_count: u64Current viewer count
Trait Implementations§
Source§impl Clone for Livestream
impl Clone for Livestream
Source§fn clone(&self) -> Livestream
fn clone(&self) -> Livestream
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 Livestream
impl Debug for Livestream
Source§impl<'de> Deserialize<'de> for Livestream
impl<'de> Deserialize<'de> for Livestream
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 Livestream
impl RefUnwindSafe for Livestream
impl Send for Livestream
impl Sync for Livestream
impl Unpin for Livestream
impl UnsafeUnpin for Livestream
impl UnwindSafe for Livestream
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