pub struct FieldRef<S: Schema, T> { /* 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: Schema, T> FieldRef<S, T>
Comparison operations for any field type.
impl<S: Schema, T> FieldRef<S, T>
Comparison operations for any field type.
Sourcepub fn eq<V: IntoODataValue>(self, value: V) -> Expr
pub fn eq<V: IntoODataValue>(self, value: V) -> Expr
Sourcepub fn ne<V: IntoODataValue>(self, value: V) -> Expr
pub fn ne<V: IntoODataValue>(self, value: V) -> Expr
Create a not-equal comparison: field ne value
Sourcepub fn gt<V: IntoODataValue>(self, value: V) -> Expr
pub fn gt<V: IntoODataValue>(self, value: V) -> Expr
Create a greater-than comparison: field gt value
Sourcepub fn ge<V: IntoODataValue>(self, value: V) -> Expr
pub fn ge<V: IntoODataValue>(self, value: V) -> Expr
Create a greater-than-or-equal comparison: field ge value
Sourcepub fn lt<V: IntoODataValue>(self, value: V) -> Expr
pub fn lt<V: IntoODataValue>(self, value: V) -> Expr
Create a less-than comparison: field lt value
Sourcepub fn le<V: IntoODataValue>(self, value: V) -> Expr
pub fn le<V: IntoODataValue>(self, value: V) -> Expr
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: Schema, T> Copy for FieldRef<S, T>
impl<S: Schema, T> Eq for FieldRef<S, T>
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