#[non_exhaustive]pub struct CaptionSourceBuilder { /* private fields */ }
Expand description
A builder for CaptionSource
.
Implementations§
source§impl CaptionSourceBuilder
impl CaptionSourceBuilder
sourcepub fn key(self, input: impl Into<String>) -> Self
pub fn key(self, input: impl Into<String>) -> Self
The name of the sidecar caption file that you want Elastic Transcoder to include in the output file.
sourcepub fn set_key(self, input: Option<String>) -> Self
pub fn set_key(self, input: Option<String>) -> Self
The name of the sidecar caption file that you want Elastic Transcoder to include in the output file.
sourcepub fn get_key(&self) -> &Option<String>
pub fn get_key(&self) -> &Option<String>
The name of the sidecar caption file that you want Elastic Transcoder to include in the output file.
sourcepub fn language(self, input: impl Into<String>) -> Self
pub fn language(self, input: impl Into<String>) -> Self
A string that specifies the language of the caption. If you specified multiple inputs with captions, the caption language must match in order to be included in the output. Specify this as one of:
-
2-character ISO 639-1 code
-
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
sourcepub fn set_language(self, input: Option<String>) -> Self
pub fn set_language(self, input: Option<String>) -> Self
A string that specifies the language of the caption. If you specified multiple inputs with captions, the caption language must match in order to be included in the output. Specify this as one of:
-
2-character ISO 639-1 code
-
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
sourcepub fn get_language(&self) -> &Option<String>
pub fn get_language(&self) -> &Option<String>
A string that specifies the language of the caption. If you specified multiple inputs with captions, the caption language must match in order to be included in the output. Specify this as one of:
-
2-character ISO 639-1 code
-
3-character ISO 639-2 code
For more information on ISO language codes and language names, see the List of ISO 639-1 codes.
sourcepub fn time_offset(self, input: impl Into<String>) -> Self
pub fn time_offset(self, input: impl Into<String>) -> Self
For clip generation or captions that do not start at the same time as the associated video file, the TimeOffset
tells Elastic Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form \[+-\]SS.sss or \[+-\]HH:mm:SS.ss.
sourcepub fn set_time_offset(self, input: Option<String>) -> Self
pub fn set_time_offset(self, input: Option<String>) -> Self
For clip generation or captions that do not start at the same time as the associated video file, the TimeOffset
tells Elastic Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form \[+-\]SS.sss or \[+-\]HH:mm:SS.ss.
sourcepub fn get_time_offset(&self) -> &Option<String>
pub fn get_time_offset(&self) -> &Option<String>
For clip generation or captions that do not start at the same time as the associated video file, the TimeOffset
tells Elastic Transcoder how much of the video to encode before including captions.
Specify the TimeOffset in the form \[+-\]SS.sss or \[+-\]HH:mm:SS.ss.
sourcepub fn label(self, input: impl Into<String>) -> Self
pub fn label(self, input: impl Into<String>) -> Self
The label of the caption shown in the player when choosing a language. We recommend that you put the caption language name here, in the language of the captions.
sourcepub fn set_label(self, input: Option<String>) -> Self
pub fn set_label(self, input: Option<String>) -> Self
The label of the caption shown in the player when choosing a language. We recommend that you put the caption language name here, in the language of the captions.
sourcepub fn get_label(&self) -> &Option<String>
pub fn get_label(&self) -> &Option<String>
The label of the caption shown in the player when choosing a language. We recommend that you put the caption language name here, in the language of the captions.
sourcepub fn encryption(self, input: Encryption) -> Self
pub fn encryption(self, input: Encryption) -> Self
The encryption settings, if any, that Elastic Transcoder needs to decyrpt your caption sources, or that you want Elastic Transcoder to apply to your caption sources.
sourcepub fn set_encryption(self, input: Option<Encryption>) -> Self
pub fn set_encryption(self, input: Option<Encryption>) -> Self
The encryption settings, if any, that Elastic Transcoder needs to decyrpt your caption sources, or that you want Elastic Transcoder to apply to your caption sources.
sourcepub fn get_encryption(&self) -> &Option<Encryption>
pub fn get_encryption(&self) -> &Option<Encryption>
The encryption settings, if any, that Elastic Transcoder needs to decyrpt your caption sources, or that you want Elastic Transcoder to apply to your caption sources.
sourcepub fn build(self) -> CaptionSource
pub fn build(self) -> CaptionSource
Consumes the builder and constructs a CaptionSource
.
Trait Implementations§
source§impl Clone for CaptionSourceBuilder
impl Clone for CaptionSourceBuilder
source§fn clone(&self) -> CaptionSourceBuilder
fn clone(&self) -> CaptionSourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CaptionSourceBuilder
impl Debug for CaptionSourceBuilder
source§impl Default for CaptionSourceBuilder
impl Default for CaptionSourceBuilder
source§fn default() -> CaptionSourceBuilder
fn default() -> CaptionSourceBuilder
source§impl PartialEq for CaptionSourceBuilder
impl PartialEq for CaptionSourceBuilder
source§fn eq(&self, other: &CaptionSourceBuilder) -> bool
fn eq(&self, other: &CaptionSourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CaptionSourceBuilder
Auto Trait Implementations§
impl Freeze for CaptionSourceBuilder
impl RefUnwindSafe for CaptionSourceBuilder
impl Send for CaptionSourceBuilder
impl Sync for CaptionSourceBuilder
impl Unpin for CaptionSourceBuilder
impl UnwindSafe for CaptionSourceBuilder
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