pub struct TableInfo {
pub name: String,
pub columns: Vec<ColumnInfo>,
pub primary_key: Vec<String>,
pub foreign_keys: Vec<ForeignKeyInfo>,
pub unique_constraints: Vec<UniqueConstraintInfo>,
pub check_constraints: Vec<CheckConstraintInfo>,
pub indexes: Vec<IndexInfo>,
pub comment: Option<String>,
}Expand description
Information about a database table.
Fields§
§name: StringTable name
columns: Vec<ColumnInfo>Columns in the table
primary_key: Vec<String>Primary key column names
foreign_keys: Vec<ForeignKeyInfo>Foreign key constraints
unique_constraints: Vec<UniqueConstraintInfo>Unique constraints
check_constraints: Vec<CheckConstraintInfo>Check constraints
indexes: Vec<IndexInfo>Indexes on the table
comment: Option<String>Table comment (if any)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableInfo
impl RefUnwindSafe for TableInfo
impl Send for TableInfo
impl Sync for TableInfo
impl Unpin for TableInfo
impl UnsafeUnpin for TableInfo
impl UnwindSafe for TableInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).