Struct aws_sdk_mediaconvert::types::builders::OpusSettingsBuilder
source · #[non_exhaustive]pub struct OpusSettingsBuilder { /* private fields */ }
Expand description
A builder for OpusSettings
.
Implementations§
source§impl OpusSettingsBuilder
impl OpusSettingsBuilder
sourcepub fn bitrate(self, input: i32) -> Self
pub fn bitrate(self, input: i32) -> Self
Optional. Specify the average bitrate in bits per second. Valid values are multiples of 8000, from 32000 through 192000. The default value is 96000, which we recommend for quality and bandwidth.
sourcepub fn set_bitrate(self, input: Option<i32>) -> Self
pub fn set_bitrate(self, input: Option<i32>) -> Self
Optional. Specify the average bitrate in bits per second. Valid values are multiples of 8000, from 32000 through 192000. The default value is 96000, which we recommend for quality and bandwidth.
sourcepub fn get_bitrate(&self) -> &Option<i32>
pub fn get_bitrate(&self) -> &Option<i32>
Optional. Specify the average bitrate in bits per second. Valid values are multiples of 8000, from 32000 through 192000. The default value is 96000, which we recommend for quality and bandwidth.
sourcepub fn channels(self, input: i32) -> Self
pub fn channels(self, input: i32) -> Self
Specify the number of channels in this output audio track. Choosing Mono on gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
sourcepub fn set_channels(self, input: Option<i32>) -> Self
pub fn set_channels(self, input: Option<i32>) -> Self
Specify the number of channels in this output audio track. Choosing Mono on gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
sourcepub fn get_channels(&self) -> &Option<i32>
pub fn get_channels(&self) -> &Option<i32>
Specify the number of channels in this output audio track. Choosing Mono on gives you 1 output channel; choosing Stereo gives you 2. In the API, valid values are 1 and 2.
sourcepub fn sample_rate(self, input: i32) -> Self
pub fn sample_rate(self, input: i32) -> Self
Optional. Sample rate in Hz. Valid values are 16000, 24000, and 48000. The default value is 48000.
sourcepub fn set_sample_rate(self, input: Option<i32>) -> Self
pub fn set_sample_rate(self, input: Option<i32>) -> Self
Optional. Sample rate in Hz. Valid values are 16000, 24000, and 48000. The default value is 48000.
sourcepub fn get_sample_rate(&self) -> &Option<i32>
pub fn get_sample_rate(&self) -> &Option<i32>
Optional. Sample rate in Hz. Valid values are 16000, 24000, and 48000. The default value is 48000.
sourcepub fn build(self) -> OpusSettings
pub fn build(self) -> OpusSettings
Consumes the builder and constructs a OpusSettings
.
Trait Implementations§
source§impl Clone for OpusSettingsBuilder
impl Clone for OpusSettingsBuilder
source§fn clone(&self) -> OpusSettingsBuilder
fn clone(&self) -> OpusSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OpusSettingsBuilder
impl Debug for OpusSettingsBuilder
source§impl Default for OpusSettingsBuilder
impl Default for OpusSettingsBuilder
source§fn default() -> OpusSettingsBuilder
fn default() -> OpusSettingsBuilder
source§impl PartialEq for OpusSettingsBuilder
impl PartialEq for OpusSettingsBuilder
source§fn eq(&self, other: &OpusSettingsBuilder) -> bool
fn eq(&self, other: &OpusSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OpusSettingsBuilder
Auto Trait Implementations§
impl Freeze for OpusSettingsBuilder
impl RefUnwindSafe for OpusSettingsBuilder
impl Send for OpusSettingsBuilder
impl Sync for OpusSettingsBuilder
impl Unpin for OpusSettingsBuilder
impl UnwindSafe for OpusSettingsBuilder
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> 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>
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>
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 more