Struct StreamingFormat

Source
pub struct StreamingFormat {
Show 25 fields pub itag: u32, pub url: Option<String>, pub mime_type: String, pub bitrate: u64, pub width: Option<u32>, pub height: Option<u32>, pub init_range: Option<Range>, pub index_range: Option<Range>, pub last_modified: Option<String>, pub content_length: Option<String>, pub quality: String, pub fps: Option<u32>, pub quality_label: Option<String>, pub projection_type: String, pub average_bitrate: Option<u64>, pub audio_quality: Option<String>, pub approx_duration_ms: String, pub audio_sample_rate: Option<String>, pub audio_channels: Option<u32>, pub quality_ordinal: Option<String>, pub high_replication: Option<bool>, pub color_info: Option<ColorInfo>, pub loudness_db: Option<f64>, pub is_drc: Option<bool>, pub xtags: Option<String>,
}
Expand description

Represents a single video or audio format available for streaming

Fields§

§itag: u32

Format identification number

§url: Option<String>

URL to the media

§mime_type: String

MIME type and codec information

§bitrate: u64

Bitrate in bits per second

§width: Option<u32>

Video width in pixels (video only)

§height: Option<u32>

Video height in pixels (video only)

§init_range: Option<Range>

Initialization range for segmented formats

§index_range: Option<Range>

Index range for segmented formats

§last_modified: Option<String>

Last modification timestamp

§content_length: Option<String>

Content length in bytes

§quality: String

Quality label (e.g., “medium”, “hd720”)

§fps: Option<u32>

Frames per second (video only)

§quality_label: Option<String>

Human-readable quality label (e.g., “720p”)

§projection_type: String

Projection type (e.g., “RECTANGULAR”)

§average_bitrate: Option<u64>

Average bitrate in bits per second

§audio_quality: Option<String>

Audio quality (audio only)

§approx_duration_ms: String

Approximate duration in milliseconds

§audio_sample_rate: Option<String>

Audio sample rate (audio only)

§audio_channels: Option<u32>

Number of audio channels (audio only)

§quality_ordinal: Option<String>

Quality ordinal value

§high_replication: Option<bool>

High replication flag

§color_info: Option<ColorInfo>

Color information

§loudness_db: Option<f64>

Loudness in decibels (audio only)

§is_drc: Option<bool>

Whether DRC (Dynamic Range Compression) is used

§xtags: Option<String>

Extra tags

Trait Implementations§

Source§

impl Clone for StreamingFormat

Source§

fn clone(&self) -> StreamingFormat

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StreamingFormat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for StreamingFormat

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for StreamingFormat

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T