pub struct TranscriptQuery {
pub text: String,
pub page: u32,
pub page_size: u32,
pub require_all: bool,
pub video_id: Option<String>,
pub lang: Option<String>,
pub source: Option<TranscriptSource>,
pub sort_by: TranscriptSort,
pub desc: bool,
pub exact: bool,
}Expand description
One transcript search: the filters the page and the count share, plus the page and the sort.
page is one-based and page_size in rows, like
crate::search::SearchQuery. The functions take p_limit/p_offset,
zero-based; the conversion happens here, beside the saturation rule, so the
two front ends cannot round it differently.
Fields§
§text: String§page: u32§page_size: u32§require_all: boolEvery term must appear in the video’s deduplicated transcript, not in
the returned utterance: no sixteen-word cue holds a phrase like dark root basin even when the video discusses it for ten minutes. See
rpc.md for why there is no fallback to any-term.
video_id: Option<String>§lang: Option<String>BCP-47, e.g. en.
source: Option<TranscriptSource>§sort_by: TranscriptSort§desc: boolDescending. Meaningful for every key here, the default sort included.
exact: boolLiteral and adjacent, over the simple configuration, so racing is
not satisfied by race.
Trait Implementations§
Source§impl Clone for TranscriptQuery
impl Clone for TranscriptQuery
Auto Trait Implementations§
impl Forget for TranscriptQuery
impl Freeze for TranscriptQuery
impl Move for TranscriptQuery
impl RefUnwindSafe for TranscriptQuery
impl Send for TranscriptQuerywhere
RawVecInner: Send,
impl Sync for TranscriptQuerywhere
RawVecInner: Sync,
impl Unpin for TranscriptQuery
impl UnsafeUnpin for TranscriptQuery
impl UnwindSafe for TranscriptQuerywhere
RawVecInner: UnwindSafe,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more