pub struct Format { /* private fields */ }
Expand description
Describes a single streaming format for a YouTube video.
Implementations§
Source§impl Format
impl Format
pub fn itag(&self) -> u32
pub fn size(&self) -> Option<u32>
Sourcepub async fn to_vec(&self) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>
pub async fn to_vec(&self) -> Result<Vec<u8>, Box<dyn Error + Send + Sync>>
Read the entire YouTube video into a vector.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Format
impl<'de> Deserialize<'de> for Format
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 Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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