pub struct SearchComment {
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 SearchComment
impl CacheKey for SearchComment
Source§impl Clone for SearchComment
impl Clone for SearchComment
Source§fn clone(&self) -> SearchComment
fn clone(&self) -> SearchComment
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 SearchComment
impl Debug for SearchComment
Source§impl<'de> Deserialize<'de> for SearchComment
impl<'de> Deserialize<'de> for SearchComment
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 SearchComment
impl Hash for SearchComment
Source§impl ReportHandler for SearchComment
Available on non-WebAssembly only.
impl ReportHandler for SearchComment
Available on non-WebAssembly only.
type Output = SearchCommentResult
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 SearchComment
impl ReportIdStatic for SearchComment
fn report_id_static() -> &'static str
Source§impl ReportOutputType for SearchComment
impl ReportOutputType for SearchComment
type Output = SearchCommentResult
Auto Trait Implementations§
impl Freeze for SearchComment
impl RefUnwindSafe for SearchComment
impl Send for SearchComment
impl Sync for SearchComment
impl Unpin for SearchComment
impl UnsafeUnpin for SearchComment
impl UnwindSafe for SearchComment
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.