pub struct Column<M, T> { /* private fields */ }Expand description
A typed column reference: M is the model, T the field type.
#[derive(Model)] generates one per field (User::EMAIL), so filters check
both the column name and the value type at compile time.
Implementations§
Trait Implementations§
impl<M, T> Copy for Column<M, T>
Source§impl<M, T, V: FilterValue<T>> FilterColumn<M, V> for Column<M, T>
impl<M, T, V: FilterValue<T>> FilterColumn<M, V> for Column<M, T>
impl<M, T: Model> ForeignKeyRef<M, T> for Column<M, ForeignKey<T>>
Source§impl<M: Model, R> PrefetchRef<M, R> for Column<R, ForeignKey<M>>
impl<M: Model, R> PrefetchRef<M, R> for Column<R, ForeignKey<M>>
fn prefetch_kind(&self) -> PrefetchKind<'_>
Auto Trait Implementations§
impl<M, T> Forget for Column<M, T>
impl<M, T> Freeze for Column<M, T>
impl<M, T> RefUnwindSafe for Column<M, T>
impl<M, T> Send for Column<M, T>
impl<M, T> Sync for Column<M, T>
impl<M, T> Unpin for Column<M, T>
impl<M, T> UnsafeUnpin for Column<M, T>
impl<M, T> UnwindSafe for Column<M, 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