Skip to main content

Column

Struct Column 

Source
pub struct Column<T> {
    pub table: &'static str,
    pub name: &'static str,
    /* private fields */
}

Fields§

§table: &'static str§name: &'static str

Implementations§

Source§

impl<T> Column<T>

Source

pub const fn new(table: &'static str, name: &'static str) -> Self

Source

pub fn qualified(&self) -> String

Source

pub fn asc(&self) -> OrderBy

Source

pub fn desc(&self) -> OrderBy

Source

pub fn equals<U>(&self, other: &Column<U>) -> JoinCondition

Trait Implementations§

Source§

impl<T: Clone> Clone for Column<T>

Source§

fn clone(&self) -> Column<T>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> ColumnRef for Column<T>

Source§

fn name(&self) -> &'static str

Source§

fn table(&self) -> &'static str

Source§

impl<T> CommonOps for Column<T>

Source§

fn eq<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn ne<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn in_list(&self, values: &[Value]) -> Expr

Source§

fn not_in(&self, values: &[Value]) -> Expr

Source§

fn is_null(&self) -> Expr

Source§

fn is_not_null(&self) -> Expr

Source§

impl<T: Copy> Copy for Column<T>

Source§

impl<T: Debug> Debug for Column<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl NumericOps for Column<Integer>

Source§

fn gt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn gte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn between<L: Into<Value>, H: Into<Value>>(&self, low: L, high: H) -> Expr

Source§

impl NumericOps for Column<Real>

Source§

fn gt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn gte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn between<L: Into<Value>, H: Into<Value>>(&self, low: L, high: H) -> Expr

Source§

impl NumericOps for Column<BigInt>

Source§

fn gt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn gte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn between<L: Into<Value>, H: Into<Value>>(&self, low: L, high: H) -> Expr

Source§

impl NumericOps for Column<SmallInt>

Source§

fn gt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn gte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn between<L: Into<Value>, H: Into<Value>>(&self, low: L, high: H) -> Expr

Source§

impl NumericOps for Column<Timestamp>

Source§

fn gt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn gte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn between<L: Into<Value>, H: Into<Value>>(&self, low: L, high: H) -> Expr

Source§

impl NumericOps for Column<Date>

Source§

fn gt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn gte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn between<L: Into<Value>, H: Into<Value>>(&self, low: L, high: H) -> Expr

Source§

impl NumericOps for Column<Time>

Source§

fn gt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lt<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn gte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn lte<V: Into<Value>>(&self, val: V) -> Expr

Source§

fn between<L: Into<Value>, H: Into<Value>>(&self, low: L, high: H) -> Expr

Source§

impl TextOps for Column<Text>

Source§

fn like<V: Into<Value>>(&self, val: V) -> Expr

Source§

impl TextOps for Column<Uuid>

Source§

fn like<V: Into<Value>>(&self, val: V) -> Expr

Source§

impl TextOps for Column<Date>

Source§

fn like<V: Into<Value>>(&self, val: V) -> Expr

Source§

impl TextOps for Column<Time>

Source§

fn like<V: Into<Value>>(&self, val: V) -> Expr

Source§

impl<const N: u32> TextOps for Column<Varchar<N>>

Source§

fn like<V: Into<Value>>(&self, val: V) -> Expr

Auto Trait Implementations§

§

impl<T> Freeze for Column<T>
where PhantomData<T>: Freeze,

§

impl<T> RefUnwindSafe for Column<T>

§

impl<T> Send for Column<T>
where PhantomData<T>: Send,

§

impl<T> Sync for Column<T>
where PhantomData<T>: Sync,

§

impl<T> Unpin for Column<T>
where PhantomData<T>: Unpin,

§

impl<T> UnsafeUnpin for Column<T>

§

impl<T> UnwindSafe for Column<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more