#[non_exhaustive]pub struct TextStream {
pub codec: String,
pub language_code: String,
pub mapping: Vec<TextMapping>,
pub display_name: String,
/* private fields */
}
Expand description
Encoding of a text stream. For example, closed captions or subtitles.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.codec: String
The codec for this text stream. The default is webvtt
.
Supported text codecs:
srt
ttml
cea608
cea708
webvtt
language_code: 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: Vec<TextMapping>
The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
display_name: String
The name for this particular text stream that will be added to the HLS/DASH manifest. Not supported in MP4 files.
Implementations§
Source§impl TextStream
impl TextStream
pub fn new() -> Self
Sourcepub fn set_language_code<T: Into<String>>(self, v: T) -> Self
pub fn set_language_code<T: Into<String>>(self, v: T) -> Self
Sets the value of language_code.
Sourcepub fn set_mapping<T, V>(self, v: T) -> Self
pub fn set_mapping<T, V>(self, v: T) -> Self
Sets the value of mapping.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Trait Implementations§
Source§impl Clone for TextStream
impl Clone for TextStream
Source§fn clone(&self) -> TextStream
fn clone(&self) -> TextStream
Returns a duplicate 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 PartialEq for TextStream
impl PartialEq for TextStream
impl StructuralPartialEq 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