pub struct TableInfo {
pub name: String,
pub schema: Option<String>,
pub comment: Option<String>,
pub columns: Vec<ColumnInfo>,
pub primary_key: Vec<String>,
pub foreign_keys: Vec<ForeignKeyInfo>,
pub indexes: Vec<IndexInfo>,
pub unique_constraints: Vec<UniqueConstraint>,
pub check_constraints: Vec<CheckConstraint>,
}Expand description
Information about a table.
Fields§
§name: StringTable name.
schema: Option<String>Schema/namespace.
comment: Option<String>Table comment/description.
columns: Vec<ColumnInfo>Columns.
primary_key: Vec<String>Primary key columns.
foreign_keys: Vec<ForeignKeyInfo>Foreign keys.
indexes: Vec<IndexInfo>Indexes.
unique_constraints: Vec<UniqueConstraint>Unique constraints.
check_constraints: Vec<CheckConstraint>Check constraints.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TableInfo
impl<'de> Deserialize<'de> for TableInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TableInfo
impl RefUnwindSafe for TableInfo
impl Send for TableInfo
impl Sync for TableInfo
impl Unpin 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