#[non_exhaustive]pub struct InputCaptionsBuilder { /* private fields */ }
Expand description
A builder for InputCaptions
.
Implementations§
source§impl InputCaptionsBuilder
impl InputCaptionsBuilder
sourcepub fn merge_policy(self, input: impl Into<String>) -> Self
pub fn merge_policy(self, input: impl Into<String>) -> Self
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 set_merge_policy(self, input: Option<String>) -> Self
pub fn set_merge_policy(self, input: Option<String>) -> Self
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 get_merge_policy(&self) -> &Option<String>
pub fn get_merge_policy(&self) -> &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.
sourcepub fn caption_sources(self, input: CaptionSource) -> Self
pub fn caption_sources(self, input: CaptionSource) -> Self
Appends an item to caption_sources
.
To override the contents of this collection use set_caption_sources
.
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources
blank.
sourcepub fn set_caption_sources(self, input: Option<Vec<CaptionSource>>) -> Self
pub fn set_caption_sources(self, input: Option<Vec<CaptionSource>>) -> Self
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources
blank.
sourcepub fn get_caption_sources(&self) -> &Option<Vec<CaptionSource>>
pub fn get_caption_sources(&self) -> &Option<Vec<CaptionSource>>
Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave CaptionSources
blank.
sourcepub fn build(self) -> InputCaptions
pub fn build(self) -> InputCaptions
Consumes the builder and constructs a InputCaptions
.
Trait Implementations§
source§impl Clone for InputCaptionsBuilder
impl Clone for InputCaptionsBuilder
source§fn clone(&self) -> InputCaptionsBuilder
fn clone(&self) -> InputCaptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InputCaptionsBuilder
impl Debug for InputCaptionsBuilder
source§impl Default for InputCaptionsBuilder
impl Default for InputCaptionsBuilder
source§fn default() -> InputCaptionsBuilder
fn default() -> InputCaptionsBuilder
source§impl PartialEq for InputCaptionsBuilder
impl PartialEq for InputCaptionsBuilder
source§fn eq(&self, other: &InputCaptionsBuilder) -> bool
fn eq(&self, other: &InputCaptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InputCaptionsBuilder
Auto Trait Implementations§
impl Freeze for InputCaptionsBuilder
impl RefUnwindSafe for InputCaptionsBuilder
impl Send for InputCaptionsBuilder
impl Sync for InputCaptionsBuilder
impl Unpin for InputCaptionsBuilder
impl UnwindSafe for InputCaptionsBuilder
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