pub enum VideoMediaType {
AVI,
MP4,
MPEG,
}Expand description
Describes the video media type of the content. Not every provider supports every media type. Convertible to and from MIME type strings.
Variants§
Trait Implementations§
Source§impl Clone for VideoMediaType
impl Clone for VideoMediaType
Source§fn clone(&self) -> VideoMediaType
fn clone(&self) -> VideoMediaType
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 VideoMediaType
impl Debug for VideoMediaType
Source§impl<'de> Deserialize<'de> for VideoMediaType
impl<'de> Deserialize<'de> for VideoMediaType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<VideoMediaType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<VideoMediaType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MimeType for VideoMediaType
impl MimeType for VideoMediaType
fn from_mime_type(mime_type: &str) -> Option<VideoMediaType>where
VideoMediaType: Sized,
fn to_mime_type(&self) -> &'static str
Source§impl PartialEq for VideoMediaType
impl PartialEq for VideoMediaType
Source§impl Serialize for VideoMediaType
impl Serialize for VideoMediaType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for VideoMediaType
Auto Trait Implementations§
impl Freeze for VideoMediaType
impl RefUnwindSafe for VideoMediaType
impl Send for VideoMediaType
impl Sync for VideoMediaType
impl Unpin for VideoMediaType
impl UnwindSafe for VideoMediaType
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