Struct aws_sdk_mediaconvert::types::CaptionDescription
source · #[non_exhaustive]pub struct CaptionDescription {
pub caption_selector_name: Option<String>,
pub custom_language_code: Option<String>,
pub destination_settings: Option<CaptionDestinationSettings>,
pub language_code: Option<LanguageCode>,
pub language_description: Option<String>,
}
Expand description
This object holds groups of settings related to captions for one output. For each output that has captions, include one instance of CaptionDescriptions.
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.Specifies which “Caption Selector”:#inputs-caption_selector to use from each input when generating captions. The name should be of the format “Caption Selector
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 CaptionDescription
impl CaptionDescription
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) -> 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 CaptionDescription
impl CaptionDescription
sourcepub fn builder() -> CaptionDescriptionBuilder
pub fn builder() -> CaptionDescriptionBuilder
Creates a new builder-style object to manufacture CaptionDescription
.
Trait Implementations§
source§impl Clone for CaptionDescription
impl Clone for CaptionDescription
source§fn clone(&self) -> CaptionDescription
fn clone(&self) -> CaptionDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CaptionDescription
impl Debug for CaptionDescription
source§impl PartialEq for CaptionDescription
impl PartialEq for CaptionDescription
source§fn eq(&self, other: &CaptionDescription) -> bool
fn eq(&self, other: &CaptionDescription) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CaptionDescription
Auto Trait Implementations§
impl Freeze for CaptionDescription
impl RefUnwindSafe for CaptionDescription
impl Send for CaptionDescription
impl Sync for CaptionDescription
impl Unpin for CaptionDescription
impl UnwindSafe for CaptionDescription
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