pub struct FieldRef<S, T>where
S: Schema,{ /* private fields */ }Expand description
Type-safe field reference holding schema and Rust type information.
This struct binds a field to both its schema and expected Rust type, enabling compile-time type checking for filter operations.
NOTE: FieldRef equality and hashing are based solely on the underlying
schema field. The generic type parameter T is a phantom type used only for
compile-time validation of operations and is not part of the field identity.
§Type Parameters
S- The schema type implementingSchemaT- The Rust type this field represents (e.g.,String,uuid::Uuid)
Implementations§
Source§impl<S, T> FieldRef<S, T>where
S: Schema,
Comparison operations for any field type.
impl<S, T> FieldRef<S, T>where
S: Schema,
Comparison operations for any field type.
Sourcepub fn eq<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
pub fn eq<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
Sourcepub fn ne<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
pub fn ne<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
Create a not-equal comparison: field ne value
Sourcepub fn gt<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
pub fn gt<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
Create a greater-than comparison: field gt value
Sourcepub fn ge<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
pub fn ge<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
Create a greater-than-or-equal comparison: field ge value
Sourcepub fn lt<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
pub fn lt<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
Create a less-than comparison: field lt value
Sourcepub fn le<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
pub fn le<V>(self, value: V) -> Exprwhere
V: IntoODataValue,
Create a less-than-or-equal comparison: field le value
Sourcepub fn is_not_null(self) -> Expr
pub fn is_not_null(self) -> Expr
Trait Implementations§
impl<S, T> Copy for FieldRef<S, T>where
S: Schema,
impl<S, T> Eq for FieldRef<S, T>where
S: Schema,
Auto Trait Implementations§
impl<S, T> Freeze for FieldRef<S, T>
impl<S, T> RefUnwindSafe for FieldRef<S, T>
impl<S, T> Send for FieldRef<S, T>
impl<S, T> Sync for FieldRef<S, T>
impl<S, T> Unpin for FieldRef<S, T>
impl<S, T> UnsafeUnpin for FieldRef<S, T>
impl<S, T> UnwindSafe for FieldRef<S, T>
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> WithSecurityContext for T
impl<T> WithSecurityContext for T
Source§fn security_ctx<'a>(&'a self, ctx: &'a SecurityContext) -> Secured<'a, T>
fn security_ctx<'a>(&'a self, ctx: &'a SecurityContext) -> Secured<'a, T>
Binds a security context to this client, returning a
Secured wrapper. Read more