pub struct TableMetadata {
pub name: String,
pub columns: Vec<ColumnMetadata>,
pub indexes: Vec<IndexMetadata>,
pub foreign_keys: Vec<ForeignKeyMetadata>,
pub primary_key: Vec<String>,
pub comment: Option<String>,
}Expand description
Metadata for a single table.
Fields§
§name: StringTable name.
columns: Vec<ColumnMetadata>Column information.
indexes: Vec<IndexMetadata>Index information.
foreign_keys: Vec<ForeignKeyMetadata>Foreign key information.
primary_key: Vec<String>Primary key columns.
comment: Option<String>Table comment.
Implementations§
Trait Implementations§
Source§impl Clone for TableMetadata
impl Clone for TableMetadata
Source§fn clone(&self) -> TableMetadata
fn clone(&self) -> TableMetadata
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 TableMetadata
impl RefUnwindSafe for TableMetadata
impl Send for TableMetadata
impl Sync for TableMetadata
impl Unpin for TableMetadata
impl UnwindSafe for TableMetadata
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