#[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 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 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 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 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 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<CaptionSourceBuilder> for CaptionSourceBuilder
impl PartialEq<CaptionSourceBuilder> 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 ==
.