pub struct ColumnSchema {
pub table_id: TableId,
pub col_pos: ColId,
pub col_name: Box<str>,
pub col_type: AlgebraicType,
}Expand description
A struct representing the schema of a database column.
Fields§
§table_id: TableIdThe ID of the table this column is attached to.
col_pos: ColIdThe position of the column within the table.
col_name: Box<str>The name of the column. Unique within the table.
col_type: AlgebraicTypeThe type of the column. This will never contain any AlgebraicTypeRefs,
that is, it will be resolved.
Implementations§
Trait Implementations§
Source§impl Clone for ColumnSchema
impl Clone for ColumnSchema
Source§fn clone(&self) -> ColumnSchema
fn clone(&self) -> ColumnSchema
Returns a duplicate 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 Debug for ColumnSchema
impl Debug for ColumnSchema
Source§impl From<&ColumnSchema> for ProductTypeElement
impl From<&ColumnSchema> for ProductTypeElement
Source§fn from(value: &ColumnSchema) -> Self
fn from(value: &ColumnSchema) -> Self
Converts to this type from the input type.
Source§impl From<ColumnSchema> for Column
impl From<ColumnSchema> for Column
Source§fn from(schema: ColumnSchema) -> Self
fn from(schema: ColumnSchema) -> Self
Converts to this type from the input type.
Source§impl Ord for ColumnSchema
impl Ord for ColumnSchema
Source§fn cmp(&self, other: &ColumnSchema) -> Ordering
fn cmp(&self, other: &ColumnSchema) -> 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 PartialEq for ColumnSchema
impl PartialEq for ColumnSchema
Source§impl PartialOrd for ColumnSchema
impl PartialOrd for ColumnSchema
Source§impl Schema for ColumnSchema
impl Schema for ColumnSchema
Source§type ParentId = ()
type ParentId = ()
The
Id type corresponding to the parent of this schema type.
Set to () if there is no parent.impl Eq for ColumnSchema
impl StructuralPartialEq for ColumnSchema
Auto Trait Implementations§
impl Freeze for ColumnSchema
impl RefUnwindSafe for ColumnSchema
impl Send for ColumnSchema
impl Sync for ColumnSchema
impl Unpin for ColumnSchema
impl UnwindSafe for ColumnSchema
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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