pub struct ColumnInfo {
pub name: String,
pub col_type: String,
pub is_primary_key: bool,
pub is_foreign_key: bool,
pub is_nullable: bool,
pub references_table: Option<String>,
pub references_column: Option<String>,
}Expand description
Information about a column in a table
Fields§
§name: StringColumn name
col_type: StringColumn type (as string for display)
is_primary_key: boolWhether this column is a primary key
is_foreign_key: boolWhether this column is a foreign key
is_nullable: boolWhether this column is nullable
references_table: Option<String>If FK, which table it references
references_column: Option<String>If FK, which column it references
Trait Implementations§
Source§impl Clone for ColumnInfo
impl Clone for ColumnInfo
Source§fn clone(&self) -> ColumnInfo
fn clone(&self) -> ColumnInfo
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 ColumnInfo
impl RefUnwindSafe for ColumnInfo
impl Send for ColumnInfo
impl Sync for ColumnInfo
impl Unpin for ColumnInfo
impl UnwindSafe for ColumnInfo
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