pub struct ColumnSnapshot {
pub name: String,
pub data_type: DataType,
pub nullable: bool,
pub primary_key: bool,
pub unique: bool,
pub autoincrement: bool,
pub default: Option<DefaultValue>,
}Expand description
A snapshot of a single column’s resolved schema.
Fields§
§name: StringColumn name.
data_type: DataTypeResolved SQL data type.
nullable: boolWhether the column is nullable.
primary_key: boolWhether this column is a primary key.
unique: boolWhether this column has a UNIQUE constraint.
autoincrement: boolWhether this column auto-increments.
default: Option<DefaultValue>Default value, if any.
Trait Implementations§
Source§impl Clone for ColumnSnapshot
impl Clone for ColumnSnapshot
Source§fn clone(&self) -> ColumnSnapshot
fn clone(&self) -> ColumnSnapshot
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 ColumnSnapshot
impl Debug for ColumnSnapshot
Source§impl PartialEq for ColumnSnapshot
impl PartialEq for ColumnSnapshot
impl StructuralPartialEq for ColumnSnapshot
Auto Trait Implementations§
impl Freeze for ColumnSnapshot
impl RefUnwindSafe for ColumnSnapshot
impl Send for ColumnSnapshot
impl Sync for ColumnSnapshot
impl Unpin for ColumnSnapshot
impl UnwindSafe for ColumnSnapshot
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