pub struct SelectedTrack<'a> {
pub track: &'a CaptionTrack,
pub fetch_url: String,
pub language: String,
pub kind: TrackKind,
}Expand description
The outcome of select_track.
Carries the chosen track, the URL to fetch (with &tlang= appended
for translations), and the metadata that should appear on the
resulting Transcript.
Fields§
§track: &'a CaptionTrackReference to the chosen track in the source response.
fetch_url: StringURL to fetch (base URL with fmt=json3 appended; for translation
flows, also &tlang=<target>).
language: StringEffective language code for the returned transcript. For translation this is the target language; otherwise it is the track’s own code.
kind: TrackKindWhether the result is manual, asr-generated, or machine-translated.
Trait Implementations§
Source§impl<'a> Clone for SelectedTrack<'a>
impl<'a> Clone for SelectedTrack<'a>
Source§fn clone(&self) -> SelectedTrack<'a>
fn clone(&self) -> SelectedTrack<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for SelectedTrack<'a>
impl<'a> RefUnwindSafe for SelectedTrack<'a>
impl<'a> Send for SelectedTrack<'a>
impl<'a> Sync for SelectedTrack<'a>
impl<'a> Unpin for SelectedTrack<'a>
impl<'a> UnsafeUnpin for SelectedTrack<'a>
impl<'a> UnwindSafe for SelectedTrack<'a>
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