pub struct ColumnSchema<'i, D: Dialect>(pub Column<'i>, pub ColumnType<D>);
Expand description
Represents column name and type for given SQL Dialect
.
Tuple Fields§
§0: Column<'i>
§1: ColumnType<D>
Implementations§
Source§impl<'i, D: Dialect> ColumnSchema<'i, D>
impl<'i, D: Dialect> ColumnSchema<'i, D>
Sourcepub fn column_type(&self) -> &ColumnType<D>
pub fn column_type(&self) -> &ColumnType<D>
Gets ColumnType
part
Trait Implementations§
Source§impl<'i, D: Clone + Dialect> Clone for ColumnSchema<'i, D>
impl<'i, D: Clone + Dialect> Clone for ColumnSchema<'i, D>
Source§fn clone(&self) -> ColumnSchema<'i, D>
fn clone(&self) -> ColumnSchema<'i, 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 ColumnSchema<'_, D>
impl<D: Dialect> Display for ColumnSchema<'_, D>
Source§impl<'i, D: Dialect, C: Into<Column<'i>>, T: Into<ColumnType<D>>> From<(C, T)> for ColumnSchema<'i, D>
impl<'i, D: Dialect, C: Into<Column<'i>>, T: Into<ColumnType<D>>> From<(C, T)> for ColumnSchema<'i, D>
Source§fn from((name, type): (C, T)) -> ColumnSchema<'i, D>
fn from((name, type): (C, T)) -> ColumnSchema<'i, D>
Converts to this type from the input type.
Source§impl<'i, D: Ord + Dialect> Ord for ColumnSchema<'i, D>
impl<'i, D: Ord + Dialect> Ord for ColumnSchema<'i, D>
Source§fn cmp(&self, other: &ColumnSchema<'i, D>) -> Ordering
fn cmp(&self, other: &ColumnSchema<'i, 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<'i, D: PartialOrd + Dialect> PartialOrd for ColumnSchema<'i, D>
impl<'i, D: PartialOrd + Dialect> PartialOrd for ColumnSchema<'i, D>
impl<'i, D: Copy + Dialect> Copy for ColumnSchema<'i, D>
impl<'i, D: Eq + Dialect> Eq for ColumnSchema<'i, D>
impl<'i, D: Dialect> StructuralPartialEq for ColumnSchema<'i, D>
Auto Trait Implementations§
impl<'i, D> Freeze for ColumnSchema<'i, D>
impl<'i, D> RefUnwindSafe for ColumnSchema<'i, D>where
D: RefUnwindSafe,
impl<'i, D> Send for ColumnSchema<'i, D>where
D: Send,
impl<'i, D> Sync for ColumnSchema<'i, D>where
D: Sync,
impl<'i, D> Unpin for ColumnSchema<'i, D>where
D: Unpin,
impl<'i, D> UnwindSafe for ColumnSchema<'i, 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