#[non_exhaustive]pub struct CaptionDescriptionPresetBuilder { /* private fields */ }
Expand description
A builder for CaptionDescriptionPreset
.
Implementations§
source§impl CaptionDescriptionPresetBuilder
impl CaptionDescriptionPresetBuilder
sourcepub fn custom_language_code(self, input: impl Into<String>) -> Self
pub fn custom_language_code(self, input: impl Into<String>) -> Self
Specify the language for this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information when automatically selecting the font script for rendering the captions text. For all outputs, you can use an ISO 639-2 or ISO 639-3 code. For streaming outputs, you can also use any other code in the full RFC-5646 specification. Streaming outputs are those that are in one of the following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth Streaming.
sourcepub fn set_custom_language_code(self, input: Option<String>) -> Self
pub fn set_custom_language_code(self, input: Option<String>) -> Self
Specify the language for this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information when automatically selecting the font script for rendering the captions text. For all outputs, you can use an ISO 639-2 or ISO 639-3 code. For streaming outputs, you can also use any other code in the full RFC-5646 specification. Streaming outputs are those that are in one of the following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth Streaming.
sourcepub fn get_custom_language_code(&self) -> &Option<String>
pub fn get_custom_language_code(&self) -> &Option<String>
Specify the language for this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information when automatically selecting the font script for rendering the captions text. For all outputs, you can use an ISO 639-2 or ISO 639-3 code. For streaming outputs, you can also use any other code in the full RFC-5646 specification. Streaming outputs are those that are in one of the following output groups: CMAF, DASH ISO, Apple HLS, or Microsoft Smooth Streaming.
sourcepub fn destination_settings(self, input: CaptionDestinationSettings) -> Self
pub fn destination_settings(self, input: CaptionDestinationSettings) -> Self
Settings related to one captions tab on the MediaConvert console. Usually, one captions tab corresponds to one output captions track. Depending on your output captions format, one tab might correspond to a set of output captions tracks. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/including-captions.html.
sourcepub fn set_destination_settings(
self,
input: Option<CaptionDestinationSettings>
) -> Self
pub fn set_destination_settings( self, input: Option<CaptionDestinationSettings> ) -> Self
Settings related to one captions tab on the MediaConvert console. Usually, one captions tab corresponds to one output captions track. Depending on your output captions format, one tab might correspond to a set of output captions tracks. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/including-captions.html.
sourcepub fn get_destination_settings(&self) -> &Option<CaptionDestinationSettings>
pub fn get_destination_settings(&self) -> &Option<CaptionDestinationSettings>
Settings related to one captions tab on the MediaConvert console. Usually, one captions tab corresponds to one output captions track. Depending on your output captions format, one tab might correspond to a set of output captions tracks. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/including-captions.html.
sourcepub fn language_code(self, input: LanguageCode) -> Self
pub fn language_code(self, input: LanguageCode) -> Self
Specify the language of this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information to choose the font language for rendering the captions text.
sourcepub fn set_language_code(self, input: Option<LanguageCode>) -> Self
pub fn set_language_code(self, input: Option<LanguageCode>) -> Self
Specify the language of this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information to choose the font language for rendering the captions text.
sourcepub fn get_language_code(&self) -> &Option<LanguageCode>
pub fn get_language_code(&self) -> &Option<LanguageCode>
Specify the language of this captions output track. For most captions output formats, the encoder puts this language information in the output captions metadata. If your output captions format is DVB-Sub or Burn in, the encoder uses this language information to choose the font language for rendering the captions text.
sourcepub fn language_description(self, input: impl Into<String>) -> Self
pub fn language_description(self, input: impl Into<String>) -> Self
Specify a label for this set of output captions. For example, “English”, “Director commentary”, or “track_2”. For streaming outputs, MediaConvert passes this information into destination manifests for display on the end-viewer’s player device. For outputs in other output groups, the service ignores this setting.
sourcepub fn set_language_description(self, input: Option<String>) -> Self
pub fn set_language_description(self, input: Option<String>) -> Self
Specify a label for this set of output captions. For example, “English”, “Director commentary”, or “track_2”. For streaming outputs, MediaConvert passes this information into destination manifests for display on the end-viewer’s player device. For outputs in other output groups, the service ignores this setting.
sourcepub fn get_language_description(&self) -> &Option<String>
pub fn get_language_description(&self) -> &Option<String>
Specify a label for this set of output captions. For example, “English”, “Director commentary”, or “track_2”. For streaming outputs, MediaConvert passes this information into destination manifests for display on the end-viewer’s player device. For outputs in other output groups, the service ignores this setting.
sourcepub fn build(self) -> CaptionDescriptionPreset
pub fn build(self) -> CaptionDescriptionPreset
Consumes the builder and constructs a CaptionDescriptionPreset
.
Trait Implementations§
source§impl Clone for CaptionDescriptionPresetBuilder
impl Clone for CaptionDescriptionPresetBuilder
source§fn clone(&self) -> CaptionDescriptionPresetBuilder
fn clone(&self) -> CaptionDescriptionPresetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CaptionDescriptionPresetBuilder
impl Default for CaptionDescriptionPresetBuilder
source§fn default() -> CaptionDescriptionPresetBuilder
fn default() -> CaptionDescriptionPresetBuilder
source§impl PartialEq for CaptionDescriptionPresetBuilder
impl PartialEq for CaptionDescriptionPresetBuilder
source§fn eq(&self, other: &CaptionDescriptionPresetBuilder) -> bool
fn eq(&self, other: &CaptionDescriptionPresetBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CaptionDescriptionPresetBuilder
Auto Trait Implementations§
impl Freeze for CaptionDescriptionPresetBuilder
impl RefUnwindSafe for CaptionDescriptionPresetBuilder
impl Send for CaptionDescriptionPresetBuilder
impl Sync for CaptionDescriptionPresetBuilder
impl Unpin for CaptionDescriptionPresetBuilder
impl UnwindSafe for CaptionDescriptionPresetBuilder
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