pub struct DbTableDescriptor {
pub name: String,
pub pk_cols: Vec<DbColumnDescription>,
pub cols: Vec<DbColumnDescription>,
}Expand description
An existing table’s shape as reported by backend introspection
(Db::describe_table). Used by schema
reconciliation to compare the live table against the declared schema.
Fields§
§name: StringThe table’s name.
pk_cols: Vec<DbColumnDescription>Primary-key columns, in declared key-position order.
cols: Vec<DbColumnDescription>The remaining (non-primary-key) columns.
Trait Implementations§
Source§impl Clone for DbTableDescriptor
impl Clone for DbTableDescriptor
Source§fn clone(&self) -> DbTableDescriptor
fn clone(&self) -> DbTableDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DbTableDescriptor
impl Debug for DbTableDescriptor
impl Eq for DbTableDescriptor
Source§impl PartialEq for DbTableDescriptor
impl PartialEq for DbTableDescriptor
Source§fn eq(&self, other: &DbTableDescriptor) -> bool
fn eq(&self, other: &DbTableDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DbTableDescriptor
Auto Trait Implementations§
impl Freeze for DbTableDescriptor
impl RefUnwindSafe for DbTableDescriptor
impl Send for DbTableDescriptor
impl Sync for DbTableDescriptor
impl Unpin for DbTableDescriptor
impl UnsafeUnpin for DbTableDescriptor
impl UnwindSafe for DbTableDescriptor
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