pub struct ColumnType<D: Dialect>(pub Object<'static>, pub PhantomData<D>);
Expand description
Represents column type for given SQL Dialect
.
Tuple Fields§
§0: Object<'static>
§1: PhantomData<D>
Implementations§
Trait Implementations§
Source§impl<D: Clone + Dialect> Clone for ColumnType<D>
impl<D: Clone + Dialect> Clone for ColumnType<D>
Source§fn clone(&self) -> ColumnType<D>
fn clone(&self) -> ColumnType<D>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<D: Dialect> Display for ColumnType<D>
impl<D: Dialect> Display for ColumnType<D>
Source§impl<D, O: Into<Object<'static>>> From<O> for ColumnType<D>where
D: Dialect,
impl<D, O: Into<Object<'static>>> From<O> for ColumnType<D>where
D: Dialect,
Source§fn from(column_type: O) -> ColumnType<D>
fn from(column_type: O) -> ColumnType<D>
Converts to this type from the input type.
Source§impl<D: Ord + Dialect> Ord for ColumnType<D>
impl<D: Ord + Dialect> Ord for ColumnType<D>
Source§fn cmp(&self, other: &ColumnType<D>) -> Ordering
fn cmp(&self, other: &ColumnType<D>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<D: PartialOrd + Dialect> PartialOrd for ColumnType<D>
impl<D: PartialOrd + Dialect> PartialOrd for ColumnType<D>
impl<D: Copy + Dialect> Copy for ColumnType<D>
impl<D: Eq + Dialect> Eq for ColumnType<D>
impl<D: Dialect> StructuralPartialEq for ColumnType<D>
Auto Trait Implementations§
impl<D> Freeze for ColumnType<D>
impl<D> RefUnwindSafe for ColumnType<D>where
D: RefUnwindSafe,
impl<D> Send for ColumnType<D>where
D: Send,
impl<D> Sync for ColumnType<D>where
D: Sync,
impl<D> Unpin for ColumnType<D>where
D: Unpin,
impl<D> UnwindSafe for ColumnType<D>where
D: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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