#[non_exhaustive]pub struct CaptionDescriptionPreset {
pub custom_language_code: Option<String>,
pub destination_settings: Option<CaptionDestinationSettings>,
pub language_code: Option<LanguageCode>,
pub language_description: Option<String>,
}
Expand description
Caption Description for preset
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.custom_language_code: 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.
destination_settings: 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.
language_code: 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.
language_description: 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.
Implementations§
source§impl CaptionDescriptionPreset
impl CaptionDescriptionPreset
sourcepub fn custom_language_code(&self) -> Option<&str>
pub fn custom_language_code(&self) -> Option<&str>
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) -> Option<&CaptionDestinationSettings>
pub fn 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) -> Option<&LanguageCode>
pub fn 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) -> Option<&str>
pub fn language_description(&self) -> Option<&str>
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.
source§impl CaptionDescriptionPreset
impl CaptionDescriptionPreset
sourcepub fn builder() -> CaptionDescriptionPresetBuilder
pub fn builder() -> CaptionDescriptionPresetBuilder
Creates a new builder-style object to manufacture CaptionDescriptionPreset
.
Trait Implementations§
source§impl Clone for CaptionDescriptionPreset
impl Clone for CaptionDescriptionPreset
source§fn clone(&self) -> CaptionDescriptionPreset
fn clone(&self) -> CaptionDescriptionPreset
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CaptionDescriptionPreset
impl Debug for CaptionDescriptionPreset
source§impl PartialEq for CaptionDescriptionPreset
impl PartialEq for CaptionDescriptionPreset
source§fn eq(&self, other: &CaptionDescriptionPreset) -> bool
fn eq(&self, other: &CaptionDescriptionPreset) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CaptionDescriptionPreset
Auto Trait Implementations§
impl Freeze for CaptionDescriptionPreset
impl RefUnwindSafe for CaptionDescriptionPreset
impl Send for CaptionDescriptionPreset
impl Sync for CaptionDescriptionPreset
impl Unpin for CaptionDescriptionPreset
impl UnwindSafe for CaptionDescriptionPreset
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