pub struct YoutubeFormat {
pub id: String,
pub source: YoutubeFormatSource,
pub extension: Option<String>,
pub has_audio: bool,
pub has_video: bool,
pub quality: Option<String>,
pub width: Option<i64>,
pub height: Option<i64>,
pub bitrate: Option<i64>,
pub content_length: Option<i64>,
pub codecs: Option<String>,
}Expand description
Denotes one format described by the Youtube player response.
Fields§
§id: StringIdentifies the format by itag.
source: YoutubeFormatSourceStates how its media representation is located and what it is guarded by.
extension: Option<String>Names its container extension when known.
has_audio: boolDenotes whether the representation contains audio.
has_video: boolDenotes whether the representation contains video.
quality: Option<String>Preserves the displayed quality when known.
width: Option<i64>Preserves coded width when known.
height: Option<i64>Preserves coded height when known.
bitrate: Option<i64>Preserves average bitrate when known.
content_length: Option<i64>Preserves expected bytes when known.
codecs: Option<String>Preserves codec names when known.
Trait Implementations§
Source§impl Clone for YoutubeFormat
impl Clone for YoutubeFormat
Source§impl Debug for YoutubeFormat
impl Debug for YoutubeFormat
impl Eq for YoutubeFormat
Source§impl PartialEq for YoutubeFormat
impl PartialEq for YoutubeFormat
impl StructuralPartialEq for YoutubeFormat
Auto Trait Implementations§
impl Freeze for YoutubeFormat
impl RefUnwindSafe for YoutubeFormat
impl Send for YoutubeFormat
impl Sync for YoutubeFormat
impl Unpin for YoutubeFormat
impl UnsafeUnpin for YoutubeFormat
impl UnwindSafe for YoutubeFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more