pub struct ColumnSchema {
pub name: &'static str,
pub rust_type: &'static str,
pub nullable: bool,
pub primary_key: bool,
pub unique: bool,
pub autoincrement: bool,
pub default_expr: Option<&'static str>,
}Expand description
Runtime column metadata (generated by derive macro).
Fields§
§name: &'static strThe SQL column name.
rust_type: &'static strThe Rust type name as a canonical string (spaces stripped).
nullable: boolWhether this column is nullable.
primary_key: boolWhether this column is the primary key.
unique: boolWhether this column has a UNIQUE constraint.
autoincrement: boolWhether this column auto-increments.
default_expr: Option<&'static str>Raw SQL default expression, if any.
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 moreAuto 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