pub struct SearchOptions<E>where
E: SearchEntity,{ /* private fields */ }Implementations§
Source§impl<E> SearchOptions<E>where
E: SearchEntity,
impl<E> SearchOptions<E>where
E: SearchEntity,
pub fn builder() -> SearchOptions<E>
pub fn sum<T, K>(self, field: FieldRef<E, T, K>) -> SearchOptions<E>where
K: SummableKind,
pub fn avg<T, K>(self, field: FieldRef<E, T, K>) -> SearchOptions<E>where
K: SummableKind,
pub fn min<T, K>(self, field: FieldRef<E, T, K>) -> SearchOptions<E>where
K: SummableKind,
pub fn max<T, K>(self, field: FieldRef<E, T, K>) -> SearchOptions<E>where
K: SummableKind,
pub fn custom<T, K>(
self,
field: FieldRef<E, T, K>,
aggregate: CustomAggregate,
) -> SearchOptions<E>where
K: SummableKind,
pub fn build(self) -> Result<SearchOptions<E>, ParamError>
pub fn requests(&self) -> &[SummaryRequest]
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for SearchOptions<E>
impl<E> RefUnwindSafe for SearchOptions<E>
impl<E> Send for SearchOptions<E>
impl<E> Sync for SearchOptions<E>
impl<E> Unpin for SearchOptions<E>
impl<E> UnsafeUnpin for SearchOptions<E>
impl<E> UnwindSafe for SearchOptions<E>
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> 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