pub struct TableDefLayout {
pub version: u32,
pub name: String,
pub created_at: u64,
pub updated_at: u64,
pub columns: Vec<ColumnLayout>,
pub primary_key: Vec<String>,
pub indexes: Vec<IndexLayout>,
pub constraints: Vec<ConstraintLayout>,
}Expand description
Plain, engine-agnostic view of a persisted table definition.
Fields§
§version: u32Schema version field.
name: StringTable name.
created_at: u64Creation timestamp.
updated_at: u64Last-update timestamp.
columns: Vec<ColumnLayout>Columns in declaration order.
primary_key: Vec<String>Primary-key column names.
indexes: Vec<IndexLayout>Indexes.
constraints: Vec<ConstraintLayout>Constraints.
Trait Implementations§
Source§impl Clone for TableDefLayout
impl Clone for TableDefLayout
Source§fn clone(&self) -> TableDefLayout
fn clone(&self) -> TableDefLayout
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 TableDefLayout
impl Debug for TableDefLayout
Source§impl PartialEq for TableDefLayout
impl PartialEq for TableDefLayout
Source§fn eq(&self, other: &TableDefLayout) -> bool
fn eq(&self, other: &TableDefLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TableDefLayout
Auto Trait Implementations§
impl Freeze for TableDefLayout
impl RefUnwindSafe for TableDefLayout
impl Send for TableDefLayout
impl Sync for TableDefLayout
impl Unpin for TableDefLayout
impl UnsafeUnpin for TableDefLayout
impl UnwindSafe for TableDefLayout
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