pub struct TableMetadata { /* private fields */ }Expand description
Represents metadata of tables.
Implementations§
Source§impl TableMetadata
impl TableMetadata
Sourcepub fn database_name(&self) -> &String
pub fn database_name(&self) -> &String
Returns the database name where the table defined.
Sourcepub fn schema_name(&self) -> &String
pub fn schema_name(&self) -> &String
Returns the schema name where the table defined.
Sourcepub fn table_name(&self) -> &String
pub fn table_name(&self) -> &String
Returns simple name of the table.
Sourcepub fn description(&self) -> Option<&String>
pub fn description(&self) -> Option<&String>
Returns description of the table.
since 0.2.0
Sourcepub fn primary_keys(&self) -> &Vec<String>
pub fn primary_keys(&self) -> &Vec<String>
Returns the primary keys of the table.
since 0.3.0
Trait Implementations§
Auto 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