pub struct StreamInfo {
pub id: String,
pub title: String,
pub description: Option<String>,
pub duration_seconds: Option<u64>,
pub manifest_url: String,
pub is_live: bool,
pub qualities: Vec<QualityInfo>,
pub thumbnail_url: Option<String>,
}Expand description
Metadata and manifest URL for a single stream/program.
Fields§
§id: StringProvider-specific program or video ID.
title: StringHuman-readable title.
description: Option<String>Optional description or subtitle.
duration_seconds: Option<u64>Duration in seconds (if known, None for live).
manifest_url: StringURL of the HLS/DASH manifest.
is_live: boolWhether this is a live stream.
qualities: Vec<QualityInfo>Available quality variants (may be empty if not yet parsed from manifest).
thumbnail_url: Option<String>URL for a representative thumbnail image.
Trait Implementations§
Source§impl Clone for StreamInfo
impl Clone for StreamInfo
Source§fn clone(&self) -> StreamInfo
fn clone(&self) -> StreamInfo
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 moreAuto Trait Implementations§
impl Freeze for StreamInfo
impl RefUnwindSafe for StreamInfo
impl Send for StreamInfo
impl Sync for StreamInfo
impl Unpin for StreamInfo
impl UnsafeUnpin for StreamInfo
impl UnwindSafe for StreamInfo
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