Struct BaseTableSchema
pub struct BaseTableSchema {
pub name: String,
pub columns: Vec<BaseColumn>,
pub primary_key: Vec<String>,
}Expand description
One base table’s externally-described schema (name + ordered columns with types + PK column
names), the shape /schema serves for client codegen (DRIZZLE-MIGRATIONS-DESIGN.md §6.2).
Fields§
§name: String§columns: Vec<BaseColumn>§primary_key: Vec<String>PK columns by name (resolved from the stored PK indices), in PK order.
Trait Implementations§
§impl Clone for BaseTableSchema
impl Clone for BaseTableSchema
§fn clone(&self) -> BaseTableSchema
fn clone(&self) -> BaseTableSchema
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 BaseTableSchema
impl RefUnwindSafe for BaseTableSchema
impl Send for BaseTableSchema
impl Sync for BaseTableSchema
impl Unpin for BaseTableSchema
impl UnsafeUnpin for BaseTableSchema
impl UnwindSafe for BaseTableSchema
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