pub struct FetchOpts {
pub language: String,
pub allow_auto: bool,
pub translate_to: Option<String>,
}Expand description
Caller-supplied options that influence track selection during
TranscriptSource::fetch.
Fields§
§language: StringPreferred caption language code (e.g. "en", "en-US"). Sources
should apply prefix fallback ("en" matches "en-US").
allow_auto: boolIf true, allow falling through to auto-generated (ASR) tracks when
no manual track matches. If false, exhausting manual tracks should
surface crate::transcript::TranscriptError::AutoCaptionsRequireOptIn.
translate_to: Option<String>If set and no native track matches language, request a translated
track in this target language. Sources that cannot translate should
ignore this field.
Implementations§
Trait Implementations§
impl Eq for FetchOpts
impl StructuralPartialEq for FetchOpts
Auto Trait Implementations§
impl Freeze for FetchOpts
impl RefUnwindSafe for FetchOpts
impl Send for FetchOpts
impl Sync for FetchOpts
impl Unpin for FetchOpts
impl UnsafeUnpin for FetchOpts
impl UnwindSafe for FetchOpts
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.