#[non_exhaustive]pub struct CaptionSelectorBuilder { /* private fields */ }
Expand description
A builder for CaptionSelector
.
Implementations§
source§impl CaptionSelectorBuilder
impl CaptionSelectorBuilder
sourcepub fn custom_language_code(self, input: impl Into<String>) -> Self
pub fn custom_language_code(self, input: impl Into<String>) -> Self
The specific language to extract from source, using the ISO 639-2 or ISO 639-3 three-letter language code. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
sourcepub fn set_custom_language_code(self, input: Option<String>) -> Self
pub fn set_custom_language_code(self, input: Option<String>) -> Self
The specific language to extract from source, using the ISO 639-2 or ISO 639-3 three-letter language code. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
sourcepub fn get_custom_language_code(&self) -> &Option<String>
pub fn get_custom_language_code(&self) -> &Option<String>
The specific language to extract from source, using the ISO 639-2 or ISO 639-3 three-letter language code. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
sourcepub fn language_code(self, input: LanguageCode) -> Self
pub fn language_code(self, input: LanguageCode) -> Self
The specific language to extract from source. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
sourcepub fn set_language_code(self, input: Option<LanguageCode>) -> Self
pub fn set_language_code(self, input: Option<LanguageCode>) -> Self
The specific language to extract from source. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
sourcepub fn get_language_code(&self) -> &Option<LanguageCode>
pub fn get_language_code(&self) -> &Option<LanguageCode>
The specific language to extract from source. If input is SCTE-27, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub and output is Burn-in, complete this field and/or PID to select the caption language to extract. If input is DVB-Sub that is being passed through, omit this field (and PID field); there is no way to extract a specific language with pass-through captions.
sourcepub fn source_settings(self, input: CaptionSourceSettings) -> Self
pub fn source_settings(self, input: CaptionSourceSettings) -> Self
If your input captions are SCC, TTML, STL, SMI, SRT, or IMSC in an xml file, specify the URI of the input captions source file. If your input captions are IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings.
sourcepub fn set_source_settings(self, input: Option<CaptionSourceSettings>) -> Self
pub fn set_source_settings(self, input: Option<CaptionSourceSettings>) -> Self
If your input captions are SCC, TTML, STL, SMI, SRT, or IMSC in an xml file, specify the URI of the input captions source file. If your input captions are IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings.
sourcepub fn get_source_settings(&self) -> &Option<CaptionSourceSettings>
pub fn get_source_settings(&self) -> &Option<CaptionSourceSettings>
If your input captions are SCC, TTML, STL, SMI, SRT, or IMSC in an xml file, specify the URI of the input captions source file. If your input captions are IMSC in an IMF package, use TrackSourceSettings instead of FileSoureSettings.
sourcepub fn build(self) -> CaptionSelector
pub fn build(self) -> CaptionSelector
Consumes the builder and constructs a CaptionSelector
.
Trait Implementations§
source§impl Clone for CaptionSelectorBuilder
impl Clone for CaptionSelectorBuilder
source§fn clone(&self) -> CaptionSelectorBuilder
fn clone(&self) -> CaptionSelectorBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CaptionSelectorBuilder
impl Debug for CaptionSelectorBuilder
source§impl Default for CaptionSelectorBuilder
impl Default for CaptionSelectorBuilder
source§fn default() -> CaptionSelectorBuilder
fn default() -> CaptionSelectorBuilder
source§impl PartialEq for CaptionSelectorBuilder
impl PartialEq for CaptionSelectorBuilder
source§fn eq(&self, other: &CaptionSelectorBuilder) -> bool
fn eq(&self, other: &CaptionSelectorBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CaptionSelectorBuilder
Auto Trait Implementations§
impl Freeze for CaptionSelectorBuilder
impl RefUnwindSafe for CaptionSelectorBuilder
impl Send for CaptionSelectorBuilder
impl Sync for CaptionSelectorBuilder
impl Unpin for CaptionSelectorBuilder
impl UnwindSafe for CaptionSelectorBuilder
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