pub struct SearchTask {
pub query: String,
pub limit: usize,
}Expand description
Search this entity type by query string. Backed by the typed
per-entity SearchIndex<T> (exact + nucleo subsequence +
Levenshtein typo). Returns matching ids in tier order.
Fields§
§query: String§limit: usizeTrait Implementations§
Source§impl CacheKey for SearchTask
impl CacheKey for SearchTask
Source§impl Clone for SearchTask
impl Clone for SearchTask
Source§fn clone(&self) -> SearchTask
fn clone(&self) -> SearchTask
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 SearchTask
impl Debug for SearchTask
Source§impl<'de> Deserialize<'de> for SearchTask
impl<'de> Deserialize<'de> for SearchTask
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
Source§impl Hash for SearchTask
impl Hash for SearchTask
Source§impl ReportHandler for SearchTask
Available on non-WebAssembly only.
impl ReportHandler for SearchTask
Available on non-WebAssembly only.
type Output = SearchTaskResult
Source§fn compute(
&self,
ctx: ReportContext,
) -> impl MaterializeDefinite<Arc<Self::Output>>
fn compute( &self, ctx: ReportContext, ) -> impl MaterializeDefinite<Arc<Self::Output>>
Compute the report output as a reactive pipeline. Read more
Source§impl ReportIdStatic for SearchTask
impl ReportIdStatic for SearchTask
fn report_id_static() -> &'static str
Source§impl ReportOutputType for SearchTask
impl ReportOutputType for SearchTask
type Output = SearchTaskResult
Auto Trait Implementations§
impl Freeze for SearchTask
impl RefUnwindSafe for SearchTask
impl Send for SearchTask
impl Sync for SearchTask
impl Unpin for SearchTask
impl UnsafeUnpin for SearchTask
impl UnwindSafe for SearchTask
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreSource§impl<T> JoinKeyFrom<T> for Twhere
T: Clone,
impl<T> JoinKeyFrom<T> for Twhere
T: Clone,
fn join_key_from(value: &T) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R> ReportFactory for Rwhere
R: ReportParams,
impl<R> ReportFactory for Rwhere
R: ReportParams,
Source§fn cell_factory(
any_report: Arc<dyn AnyReport>,
request_ctx: Arc<RequestContext>,
server_ctx: Arc<CellServerCtx>,
) -> Result<Cell<Arc<dyn AnyOutput>, CellImmutable>, String>
fn cell_factory( any_report: Arc<dyn AnyReport>, request_ctx: Arc<RequestContext>, server_ctx: Arc<CellServerCtx>, ) -> Result<Cell<Arc<dyn AnyOutput>, CellImmutable>, String>
Create a reactive cell for this report.