pub struct Ident(pub &'static str);Expand description
An untyped identifier (column or field path) for building filter expressions
where a typed Column accessor is unavailable (e.g. record-link fields the
derive doesn’t expose, or tenant.slug paths). Mirrors Column’s operators.
Tuple Fields§
§0: &'static strImplementations§
Source§impl Ident
impl Ident
pub fn eq<V: SurrealQL>(&self, v: V) -> EqExpr
pub fn ne<V: SurrealQL>(&self, v: V) -> NeExpr
pub fn gt<V: SurrealQL>(&self, v: V) -> GtExpr
pub fn lt<V: SurrealQL>(&self, v: V) -> LtExpr
pub fn gte<V: SurrealQL>(&self, v: V) -> GteExpr
pub fn lte<V: SurrealQL>(&self, v: V) -> LteExpr
pub fn contains<V: SurrealQL>(&self, v: V) -> ContainsExpr
Sourcepub fn eq_expr(&self, rhs: impl DynExpr + 'static) -> EqExpr
pub fn eq_expr(&self, rhs: impl DynExpr + 'static) -> EqExpr
Compare to an arbitrary expression — e.g. asset = type::record('asset', …).
pub fn ne_expr(&self, rhs: impl DynExpr + 'static) -> NeExpr
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ident
impl RefUnwindSafe for Ident
impl Send for Ident
impl Sync for Ident
impl Unpin for Ident
impl UnsafeUnpin for Ident
impl UnwindSafe for Ident
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more