pub struct TextStream {
pub codec: Option<String>,
pub display_name: Option<String>,
pub language_code: Option<String>,
pub mapping: Option<Vec<TextMapping>>,
}
Expand description
Encoding of a text stream. For example, closed captions or subtitles.
This type is not used in any activity, and only used as part of another schema.
Fields§
§codec: Option<String>
The codec for this text stream. The default is webvtt
. Supported text codecs: - srt
- ttml
- cea608
- cea708
- webvtt
display_name: Option<String>
The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
language_code: Option<String>
The BCP-47 language code, such as en-US
or sr-Latn
. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. Not supported in MP4 files.
mapping: Option<Vec<TextMapping>>
The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
Trait Implementations§
Source§impl Clone for TextStream
impl Clone for TextStream
Source§fn clone(&self) -> TextStream
fn clone(&self) -> TextStream
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextStream
impl Debug for TextStream
Source§impl Default for TextStream
impl Default for TextStream
Source§fn default() -> TextStream
fn default() -> TextStream
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextStream
impl<'de> Deserialize<'de> for TextStream
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TextStream
impl Serialize for TextStream
impl Part for TextStream
Auto Trait Implementations§
impl Freeze for TextStream
impl RefUnwindSafe for TextStream
impl Send for TextStream
impl Sync for TextStream
impl Unpin for TextStream
impl UnwindSafe for TextStream
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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