pub struct ColumnMetadata {
pub name: String,
pub db_type: String,
pub nullable: bool,
pub default: Option<String>,
pub auto_increment: bool,
pub is_primary_key: bool,
}Expand description
Column metadata.
Fields§
§name: StringColumn name.
db_type: StringDatabase type.
nullable: boolWhether nullable.
default: Option<String>Default value.
auto_increment: boolWhether auto-increment.
is_primary_key: boolWhether part of primary key.
Trait Implementations§
Source§impl Clone for ColumnMetadata
impl Clone for ColumnMetadata
Source§fn clone(&self) -> ColumnMetadata
fn clone(&self) -> ColumnMetadata
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 ColumnMetadata
impl RefUnwindSafe for ColumnMetadata
impl Send for ColumnMetadata
impl Sync for ColumnMetadata
impl Unpin for ColumnMetadata
impl UnwindSafe for ColumnMetadata
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