pub struct Column {
pub id: ColumnId,
pub name: String,
pub ty: Type,
pub storage_ty: Type,
pub nullable: bool,
pub primary_key: bool,
pub auto_increment: bool,
}Fields§
§id: ColumnIdUniquely identifies the column in the schema.
name: StringThe name of the column in the database.
ty: TypeThe column type, from Toasty’s point of view.
storage_ty: TypeThe database storage type of the column.
nullable: boolWhether or not the column is nullable
primary_key: boolTrue if the column is part of the table’s primary key
auto_increment: boolTrue if the column is an integer that should be auto-incremented
with each insertion of a new row. This should be false if a storage_ty
of type Serial is used.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Column
impl<'de> Deserialize<'de> for Column
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnwindSafe for Column
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