pub struct VideoVariant {
pub bitrate: Option<i32>,
pub content_type: Mime,
pub url: String,
}Expand description
Represents information about a specific encoding of a video.
Fields§
§bitrate: Option<i32>The bitrate of the video. This value is present for GIFs, but it will be zero.
content_type: MimeThe file format of the video variant.
url: StringThe URL for the video variant.
Trait Implementations§
Source§impl Clone for VideoVariant
impl Clone for VideoVariant
Source§fn clone(&self) -> VideoVariant
fn clone(&self) -> VideoVariant
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 VideoVariant
impl Debug for VideoVariant
Source§impl<'de> Deserialize<'de> for VideoVariant
impl<'de> Deserialize<'de> for VideoVariant
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 VideoVariant
impl RefUnwindSafe for VideoVariant
impl Send for VideoVariant
impl Sync for VideoVariant
impl Unpin for VideoVariant
impl UnwindSafe for VideoVariant
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