pub struct CaptionTrack {
pub base_url: String,
pub name: Option<LocalizedText>,
pub language_code: String,
pub kind: Option<String>,
pub is_translatable: Option<bool>,
}Expand description
A single caption track.
Fields§
§base_url: StringPre-signed URL for the timedtext endpoint. Append &fmt=json3 when
fetching to get the structured event format this crate parses.
name: Option<LocalizedText>Display name of the track, e.g. English (United States).
language_code: StringIETF-style language tag, e.g. en, en-US, pt-BR.
kind: Option<String>Present and equal to "asr" for auto-generated tracks; absent
for human-authored ones.
is_translatable: Option<bool>Whether YouTube allows machine-translating this track.
Implementations§
Trait Implementations§
Source§impl Clone for CaptionTrack
impl Clone for CaptionTrack
Source§fn clone(&self) -> CaptionTrack
fn clone(&self) -> CaptionTrack
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CaptionTrack
impl Debug for CaptionTrack
Source§impl<'de> Deserialize<'de> for CaptionTrack
impl<'de> Deserialize<'de> for CaptionTrack
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
Auto Trait Implementations§
impl Freeze for CaptionTrack
impl RefUnwindSafe for CaptionTrack
impl Send for CaptionTrack
impl Sync for CaptionTrack
impl Unpin for CaptionTrack
impl UnsafeUnpin for CaptionTrack
impl UnwindSafe for CaptionTrack
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