Struct aws_sdk_elastictranscoder::types::Captions
source · #[non_exhaustive]pub struct Captions {
pub merge_policy: Option<String>,
pub caption_sources: Option<Vec<CaptionSource>>,
pub caption_formats: Option<Vec<CaptionFormat>>,
}
Expand description
The captions to be created, if any.
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.merge_policy: Option<String>
A policy that determines how Elastic Transcoder handles the existence of multiple captions.
-
MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.
-
MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If
CaptionSources
is empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources
.
MergePolicy
cannot be null.
caption_sources: Option<Vec<CaptionSource>>
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources
blank.
caption_formats: Option<Vec<CaptionFormat>>
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
Implementations§
source§impl Captions
impl Captions
sourcepub fn merge_policy(&self) -> Option<&str>
👎Deprecated
pub fn merge_policy(&self) -> Option<&str>
A policy that determines how Elastic Transcoder handles the existence of multiple captions.
-
MergeOverride: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language.
-
MergeRetain: Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If
CaptionSources
is empty, Elastic Transcoder omits all sidecar captions from the output files. -
Override: Elastic Transcoder transcodes only the sidecar captions that you specify in
CaptionSources
.
MergePolicy
cannot be null.
sourcepub fn caption_sources(&self) -> &[CaptionSource]
👎Deprecated
pub fn caption_sources(&self) -> &[CaptionSource]
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources
blank.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .caption_sources.is_none()
.
sourcepub fn caption_formats(&self) -> &[CaptionFormat]
pub fn caption_formats(&self) -> &[CaptionFormat]
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .caption_formats.is_none()
.
Trait Implementations§
source§impl PartialEq for Captions
impl PartialEq for Captions
impl StructuralPartialEq for Captions
Auto Trait Implementations§
impl Freeze for Captions
impl RefUnwindSafe for Captions
impl Send for Captions
impl Sync for Captions
impl Unpin for Captions
impl UnwindSafe for Captions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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