Struct aws_sdk_rekognition::types::AudioMetadata
source · #[non_exhaustive]pub struct AudioMetadata {
pub codec: Option<String>,
pub duration_millis: Option<i64>,
pub sample_rate: Option<i64>,
pub number_of_channels: Option<i64>,
}Expand description
Metadata information about an audio stream. An array of AudioMetadata objects for the audio streams found in a stored video is returned by GetSegmentDetection.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.codec: Option<String>The audio codec used to encode or decode the audio stream.
duration_millis: Option<i64>The duration of the audio stream in milliseconds.
sample_rate: Option<i64>The sample rate for the audio stream.
number_of_channels: Option<i64>The number of audio channels in the segment.
Implementations§
source§impl AudioMetadata
impl AudioMetadata
sourcepub fn duration_millis(&self) -> Option<i64>
pub fn duration_millis(&self) -> Option<i64>
The duration of the audio stream in milliseconds.
sourcepub fn sample_rate(&self) -> Option<i64>
pub fn sample_rate(&self) -> Option<i64>
The sample rate for the audio stream.
sourcepub fn number_of_channels(&self) -> Option<i64>
pub fn number_of_channels(&self) -> Option<i64>
The number of audio channels in the segment.
source§impl AudioMetadata
impl AudioMetadata
sourcepub fn builder() -> AudioMetadataBuilder
pub fn builder() -> AudioMetadataBuilder
Creates a new builder-style object to manufacture AudioMetadata.
Trait Implementations§
source§impl Clone for AudioMetadata
impl Clone for AudioMetadata
source§fn clone(&self) -> AudioMetadata
fn clone(&self) -> AudioMetadata
Returns a copy 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 AudioMetadata
impl Debug for AudioMetadata
source§impl PartialEq for AudioMetadata
impl PartialEq for AudioMetadata
source§fn eq(&self, other: &AudioMetadata) -> bool
fn eq(&self, other: &AudioMetadata) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AudioMetadata
Auto Trait Implementations§
impl Freeze for AudioMetadata
impl RefUnwindSafe for AudioMetadata
impl Send for AudioMetadata
impl Sync for AudioMetadata
impl Unpin for AudioMetadata
impl UnwindSafe for AudioMetadata
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.