Struct aws_sdk_mediaconvert::types::builders::Mp2SettingsBuilder
source · #[non_exhaustive]pub struct Mp2SettingsBuilder { /* private fields */ }
Expand description
A builder for Mp2Settings
.
Implementations§
source§impl Mp2SettingsBuilder
impl Mp2SettingsBuilder
sourcepub fn set_bitrate(self, input: Option<i32>) -> Self
pub fn set_bitrate(self, input: Option<i32>) -> Self
Specify the average bitrate in bits per second.
sourcepub fn get_bitrate(&self) -> &Option<i32>
pub fn get_bitrate(&self) -> &Option<i32>
Specify the average bitrate in bits per second.
sourcepub fn channels(self, input: i32) -> Self
pub fn channels(self, input: i32) -> Self
Set Channels to specify the number of channels in this output audio track. Choosing Mono in will give you 1 output channel; choosing Stereo will give 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
Set Channels to specify the number of channels in this output audio track. Choosing Mono in will give you 1 output channel; choosing Stereo will give 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>
Set Channels to specify the number of channels in this output audio track. Choosing Mono in will give you 1 output channel; choosing Stereo will give 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
Sample rate in Hz.
sourcepub fn set_sample_rate(self, input: Option<i32>) -> Self
pub fn set_sample_rate(self, input: Option<i32>) -> Self
Sample rate in Hz.
sourcepub fn get_sample_rate(&self) -> &Option<i32>
pub fn get_sample_rate(&self) -> &Option<i32>
Sample rate in Hz.
sourcepub fn build(self) -> Mp2Settings
pub fn build(self) -> Mp2Settings
Consumes the builder and constructs a Mp2Settings
.
Trait Implementations§
source§impl Clone for Mp2SettingsBuilder
impl Clone for Mp2SettingsBuilder
source§fn clone(&self) -> Mp2SettingsBuilder
fn clone(&self) -> Mp2SettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Mp2SettingsBuilder
impl Debug for Mp2SettingsBuilder
source§impl Default for Mp2SettingsBuilder
impl Default for Mp2SettingsBuilder
source§fn default() -> Mp2SettingsBuilder
fn default() -> Mp2SettingsBuilder
source§impl PartialEq for Mp2SettingsBuilder
impl PartialEq for Mp2SettingsBuilder
source§fn eq(&self, other: &Mp2SettingsBuilder) -> bool
fn eq(&self, other: &Mp2SettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Mp2SettingsBuilder
Auto Trait Implementations§
impl Freeze for Mp2SettingsBuilder
impl RefUnwindSafe for Mp2SettingsBuilder
impl Send for Mp2SettingsBuilder
impl Sync for Mp2SettingsBuilder
impl Unpin for Mp2SettingsBuilder
impl UnwindSafe for Mp2SettingsBuilder
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