pub struct Column<R, V> { /* private fields */ }Expand description
A column of the row type R, holding Vs: generated as a constant of
the row struct, such as Issue::TITLE.
Implementations§
Source§impl<R, V> Column<R, V>
impl<R, V> Column<R, V>
Sourcepub const fn new(name: &'static str) -> Self
pub const fn new(name: &'static str) -> Self
The column named name (its client name). For generated code.
Sourcepub fn cmp_param(self, op: SimpleOperator, param: &StaticParameter) -> Condition
pub fn cmp_param(self, op: SimpleOperator, param: &StaticParameter) -> Condition
Compares the column with a value of the context, such as the auth data.
Source§impl<R, V: ZeroValue> Column<R, V>
impl<R, V: ZeroValue> Column<R, V>
Sourcepub fn cmp(self, op: SimpleOperator, value: V) -> Condition
pub fn cmp(self, op: SimpleOperator, value: V) -> Condition
Compares the column with value by op.
Sourcepub fn eq(self, value: V) -> Condition
pub fn eq(self, value: V) -> Condition
Equal to value. Comparing with null uses IS, since = NULL
matches nothing.
Source§impl<R> Column<R, String>
impl<R> Column<R, String>
Trait Implementations§
impl<R, V> Copy for Column<R, V>
Auto Trait Implementations§
impl<R, V> Forget for Column<R, V>
impl<R, V> Freeze for Column<R, V>
impl<R, V> Move for Column<R, V>
impl<R, V> RefUnwindSafe for Column<R, V>
impl<R, V> Send for Column<R, V>
impl<R, V> Sync for Column<R, V>
impl<R, V> Unpin for Column<R, V>
impl<R, V> UnsafeUnpin for Column<R, V>
impl<R, V> UnwindSafe for Column<R, V>
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