pub enum AudioMediaType {
WAV,
MP3,
AIFF,
AAC,
OGG,
FLAC,
}Expand description
Describes the audio 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 AudioMediaType
impl Clone for AudioMediaType
Source§fn clone(&self) -> AudioMediaType
fn clone(&self) -> AudioMediaType
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 AudioMediaType
impl Debug for AudioMediaType
Source§impl<'de> Deserialize<'de> for AudioMediaType
impl<'de> Deserialize<'de> for AudioMediaType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AudioMediaType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AudioMediaType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl MimeType for AudioMediaType
impl MimeType for AudioMediaType
fn from_mime_type(mime_type: &str) -> Option<AudioMediaType>
fn to_mime_type(&self) -> &'static str
Source§impl PartialEq for AudioMediaType
impl PartialEq for AudioMediaType
Source§impl Serialize for AudioMediaType
impl Serialize for AudioMediaType
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 AudioMediaType
Auto Trait Implementations§
impl Freeze for AudioMediaType
impl RefUnwindSafe for AudioMediaType
impl Send for AudioMediaType
impl Sync for AudioMediaType
impl Unpin for AudioMediaType
impl UnwindSafe for AudioMediaType
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