#[non_exhaustive]pub struct TrackDefinition {
pub input_track: Option<i32>,
pub languages: Vec<String>,
pub detect_languages: bool,
pub detected_languages: Vec<String>,
/* private fields */
}
Expand description
Track definition for the input asset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.input_track: Option<i32>
The input track.
languages: Vec<String>
Optional. A list of languages spoken in the input asset, represented by a BCP 47 language code, such as “en-US” or “sr-Latn”. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
detect_languages: bool
Optional. Whether to automatically detect the languages present in the track. If true, the system will attempt to identify all the languages present in the track and populate the languages field.
detected_languages: Vec<String>
Output only. A list of languages detected in the input asset, represented by a BCP 47 language code, such as “en-US” or “sr-Latn”. For more information, see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier. This field is only populated if the detect_languages field is set to true.
Implementations§
Source§impl TrackDefinition
impl TrackDefinition
pub fn new() -> Self
Sourcepub fn set_input_track<T>(self, v: T) -> Self
pub fn set_input_track<T>(self, v: T) -> Self
Sets the value of input_track.
Sourcepub fn set_or_clear_input_track<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_input_track<T>(self, v: Option<T>) -> Self
Sets or clears the value of input_track.
Sourcepub fn set_languages<T, V>(self, v: T) -> Self
pub fn set_languages<T, V>(self, v: T) -> Self
Sets the value of languages.
Sourcepub fn set_detect_languages<T: Into<bool>>(self, v: T) -> Self
pub fn set_detect_languages<T: Into<bool>>(self, v: T) -> Self
Sets the value of detect_languages.
Sourcepub fn set_detected_languages<T, V>(self, v: T) -> Self
pub fn set_detected_languages<T, V>(self, v: T) -> Self
Sets the value of detected_languages.
Trait Implementations§
Source§impl Clone for TrackDefinition
impl Clone for TrackDefinition
Source§fn clone(&self) -> TrackDefinition
fn clone(&self) -> TrackDefinition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more