#[non_exhaustive]pub struct CaptionDescriptionBuilder { /* private fields */ }
Expand description
A builder for CaptionDescription
.
Implementations§
source§impl CaptionDescriptionBuilder
impl CaptionDescriptionBuilder
Specifies which “Caption Selector”:#inputs-caption_selector to use from each input when generating captions. The name should be of the format “Caption Selector
Specifies which “Caption Selector”:#inputs-caption_selector to use from each input when generating captions. The name should be of the format “Caption Selector
Specifies which “Caption Selector”:#inputs-caption_selector to use from each input when generating captions. The name should be of the format “Caption Selector
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) -> CaptionDescription
pub fn build(self) -> CaptionDescription
Consumes the builder and constructs a CaptionDescription
.
Trait Implementations§
source§impl Clone for CaptionDescriptionBuilder
impl Clone for CaptionDescriptionBuilder
source§fn clone(&self) -> CaptionDescriptionBuilder
fn clone(&self) -> CaptionDescriptionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CaptionDescriptionBuilder
impl Debug for CaptionDescriptionBuilder
source§impl Default for CaptionDescriptionBuilder
impl Default for CaptionDescriptionBuilder
source§fn default() -> CaptionDescriptionBuilder
fn default() -> CaptionDescriptionBuilder
source§impl PartialEq for CaptionDescriptionBuilder
impl PartialEq for CaptionDescriptionBuilder
source§fn eq(&self, other: &CaptionDescriptionBuilder) -> bool
fn eq(&self, other: &CaptionDescriptionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CaptionDescriptionBuilder
Auto Trait Implementations§
impl Freeze for CaptionDescriptionBuilder
impl RefUnwindSafe for CaptionDescriptionBuilder
impl Send for CaptionDescriptionBuilder
impl Sync for CaptionDescriptionBuilder
impl Unpin for CaptionDescriptionBuilder
impl UnwindSafe for CaptionDescriptionBuilder
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