pub struct TableSnapshot {
pub name: String,
pub columns: Vec<ColumnSnapshot>,
pub primary_key: Option<PrimaryKeySnapshot>,
pub foreign_keys: Vec<ForeignKeySnapshot>,
pub unique_constraints: Vec<UniqueConstraintSnapshot>,
pub indexes: Vec<IndexSnapshot>,
pub check_constraints: Vec<CheckConstraintSnapshot>,
}Expand description
Snapshot of a single table
Fields§
§name: StringTable name
columns: Vec<ColumnSnapshot>Columns in this table
primary_key: Option<PrimaryKeySnapshot>Primary key constraint
foreign_keys: Vec<ForeignKeySnapshot>Foreign key constraints
unique_constraints: Vec<UniqueConstraintSnapshot>Unique constraints
indexes: Vec<IndexSnapshot>Indexes on this table
check_constraints: Vec<CheckConstraintSnapshot>Check constraints
Trait Implementations§
Source§impl Clone for TableSnapshot
impl Clone for TableSnapshot
Source§fn clone(&self) -> TableSnapshot
fn clone(&self) -> TableSnapshot
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 TableSnapshot
impl Debug for TableSnapshot
Source§impl<'de> Deserialize<'de> for TableSnapshot
impl<'de> Deserialize<'de> for TableSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TableSnapshot
Source§impl PartialEq for TableSnapshot
impl PartialEq for TableSnapshot
Source§fn eq(&self, other: &TableSnapshot) -> bool
fn eq(&self, other: &TableSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TableSnapshot
impl Serialize for TableSnapshot
impl StructuralPartialEq for TableSnapshot
Auto Trait Implementations§
impl Freeze for TableSnapshot
impl RefUnwindSafe for TableSnapshot
impl Send for TableSnapshot
impl Sync for TableSnapshot
impl Unpin for TableSnapshot
impl UnsafeUnpin for TableSnapshot
impl UnwindSafe for TableSnapshot
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