#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for Captions
Implementations
sourceimpl Builder
impl Builder
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 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 caption_formats(self, input: CaptionFormat) -> Self
pub fn caption_formats(self, input: CaptionFormat) -> Self
Appends an item to caption_formats
.
To override the contents of this collection use set_caption_formats
.
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
sourcepub fn set_caption_formats(self, input: Option<Vec<CaptionFormat>>) -> Self
pub fn set_caption_formats(self, input: Option<Vec<CaptionFormat>>) -> Self
The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more