pub struct ServerScopeBuilder<E>where
E: SearchEntity,{ /* private fields */ }Implementations§
Source§impl<E> ServerScopeBuilder<E>where
E: SearchEntity,
impl<E> ServerScopeBuilder<E>where
E: SearchEntity,
pub fn eq<T, K>(
self,
field: FieldRef<E, T, K>,
value: T,
) -> ServerScopeBuilder<E>where
T: IntoScalarValue,
K: RowPhaseKind,
pub fn ne<T, K>(
self,
field: FieldRef<E, T, K>,
value: T,
) -> ServerScopeBuilder<E>where
T: IntoScalarValue,
K: RowPhaseKind,
pub fn gt<T, K>(
self,
field: FieldRef<E, T, K>,
value: T,
) -> ServerScopeBuilder<E>where
T: IntoScalarValue,
K: RowPhaseKind,
pub fn ge<T, K>(
self,
field: FieldRef<E, T, K>,
value: T,
) -> ServerScopeBuilder<E>where
T: IntoScalarValue,
K: RowPhaseKind,
pub fn lt<T, K>(
self,
field: FieldRef<E, T, K>,
value: T,
) -> ServerScopeBuilder<E>where
T: IntoScalarValue,
K: RowPhaseKind,
pub fn le<T, K>(
self,
field: FieldRef<E, T, K>,
value: T,
) -> ServerScopeBuilder<E>where
T: IntoScalarValue,
K: RowPhaseKind,
pub fn between<T, K>(
self,
field: FieldRef<E, T, K>,
lower: T,
upper: T,
) -> ServerScopeBuilder<E>where
T: IntoScalarValue,
K: RowPhaseKind,
pub fn in_list<T, K, I>( self, field: FieldRef<E, T, K>, values: I, ) -> ServerScopeBuilder<E>
pub fn is_null<T, K>(self, field: FieldRef<E, T, K>) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
pub fn is_not_null<T, K>(
self,
field: FieldRef<E, T, K>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
pub fn starts_with<K>(
self,
field: FieldRef<E, String, K>,
value: impl Into<String>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
pub fn contains<K>(
self,
field: FieldRef<E, String, K>,
value: impl Into<String>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
pub fn contains_ignore_case<K>(
self,
field: FieldRef<E, String, K>,
value: impl Into<String>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
pub fn custom<T, K, I>( self, field: FieldRef<E, T, K>, operator: CustomOperator, values: I, ) -> ServerScopeBuilder<E>
Sourcepub fn custom_values<T, K, V>(
self,
field: FieldRef<E, T, K>,
operator: CustomOperator,
values: impl IntoIterator<Item = V>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
V: IntoScalarValue,
pub fn custom_values<T, K, V>(
self,
field: FieldRef<E, T, K>,
operator: CustomOperator,
values: impl IntoIterator<Item = V>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
V: IntoScalarValue,
Applies a server-owned operator whose input type may differ from the field.
Sourcepub fn exists<T, K, V>(
self,
field: FieldRef<E, T, K>,
operator: CustomOperator,
values: impl IntoIterator<Item = V>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
V: IntoScalarValue,
pub fn exists<T, K, V>(
self,
field: FieldRef<E, T, K>,
operator: CustomOperator,
values: impl IntoIterator<Item = V>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
V: IntoScalarValue,
Adds a trusted correlated EXISTS relation filter. The operator must
have been created with CustomOperator::exists.
Sourcepub fn not_exists<T, K, V>(
self,
field: FieldRef<E, T, K>,
operator: CustomOperator,
values: impl IntoIterator<Item = V>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
V: IntoScalarValue,
pub fn not_exists<T, K, V>(
self,
field: FieldRef<E, T, K>,
operator: CustomOperator,
values: impl IntoIterator<Item = V>,
) -> ServerScopeBuilder<E>where
K: RowPhaseKind,
V: IntoScalarValue,
Adds a trusted correlated NOT EXISTS relation filter. The operator
must have been created with CustomOperator::not_exists.
pub fn build(self) -> Result<ServerScope<E>, ParamError>
Auto Trait Implementations§
impl<E> Freeze for ServerScopeBuilder<E>
impl<E> RefUnwindSafe for ServerScopeBuilder<E>
impl<E> Send for ServerScopeBuilder<E>
impl<E> Sync for ServerScopeBuilder<E>
impl<E> Unpin for ServerScopeBuilder<E>
impl<E> UnsafeUnpin for ServerScopeBuilder<E>
impl<E> UnwindSafe for ServerScopeBuilder<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