#[non_exhaustive]pub enum AudioEncoding {
Show 14 variants
Unspecified,
Linear16,
Mulaw,
Alaw,
Amr,
AmrWb,
Flac,
Mp3,
OggOpus,
WebmOpus,
Mp4Aac,
M4AAac,
MovAac,
UnknownValue(UnknownValue),
}Expand description
Supported audio data encodings.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unspecified
Default value. This value is unused.
Linear16
Headerless 16-bit signed little-endian PCM samples.
Mulaw
Headerless 8-bit companded mulaw samples.
Alaw
Headerless 8-bit companded alaw samples.
Amr
AMR frames with an rfc4867.5 header.
AmrWb
AMR-WB frames with an rfc4867.5 header.
Flac
FLAC frames in the “native FLAC” container format.
Mp3
MPEG audio frames with optional (ignored) ID3 metadata.
OggOpus
Opus audio frames in an Ogg container.
WebmOpus
Opus audio frames in a WebM container.
Mp4Aac
AAC audio frames in an MP4 container.
M4AAac
AAC audio frames in an M4A container.
MovAac
AAC audio frames in an MOV container.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using AudioEncoding::value or AudioEncoding::name.
Implementations§
Trait Implementations§
Source§impl Clone for AudioEncoding
impl Clone for AudioEncoding
Source§fn clone(&self) -> AudioEncoding
fn clone(&self) -> AudioEncoding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AudioEncoding
impl Debug for AudioEncoding
Source§impl Default for AudioEncoding
impl Default for AudioEncoding
Source§impl<'de> Deserialize<'de> for AudioEncoding
impl<'de> Deserialize<'de> for AudioEncoding
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>,
Source§impl Display for AudioEncoding
impl Display for AudioEncoding
Source§impl From<&str> for AudioEncoding
impl From<&str> for AudioEncoding
Source§impl From<i32> for AudioEncoding
impl From<i32> for AudioEncoding
Source§impl PartialEq for AudioEncoding
impl PartialEq for AudioEncoding
Source§impl Serialize for AudioEncoding
impl Serialize for AudioEncoding
impl StructuralPartialEq for AudioEncoding
Auto Trait Implementations§
impl Freeze for AudioEncoding
impl RefUnwindSafe for AudioEncoding
impl Send for AudioEncoding
impl Sync for AudioEncoding
impl Unpin for AudioEncoding
impl UnwindSafe for AudioEncoding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.