pub struct AdminSearchArea {
pub key: &'static str,
pub label: &'static str,
pub search: for<'a> fn(HookCtx<'a>, &'a str) -> HookFuture<'a, Vec<AdminSearchHit>>,
}Expand description
Plugin-contributed search source for /cms-admin/search.
Receives the query string (and the tenant’s pool, so it can query);
returns up to N hits to merge into the global search response.
Fields§
§key: &'static str§label: &'static str§search: for<'a> fn(HookCtx<'a>, &'a str) -> HookFuture<'a, Vec<AdminSearchHit>>Trait Implementations§
Source§impl Clone for AdminSearchArea
impl Clone for AdminSearchArea
impl Collect for AdminSearchArea
impl Copy for AdminSearchArea
Auto Trait Implementations§
impl Forget for AdminSearchArea
impl Freeze for AdminSearchArea
impl RefUnwindSafe for AdminSearchArea
impl Send for AdminSearchArea
impl Sync for AdminSearchArea
impl Unpin for AdminSearchArea
impl UnsafeUnpin for AdminSearchArea
impl UnwindSafe for AdminSearchArea
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 moreCreates a shared type from an unshared type.