pub struct TableState {
pub name: String,
pub columns: Vec<ColumnState>,
pub unique_constraints: Vec<Vec<String>>,
pub indexes: Vec<Vec<String>>,
}Expand description
An owned table definition in a migration state.
Fields§
§name: String§columns: Vec<ColumnState>§unique_constraints: Vec<Vec<String>>§indexes: Vec<Vec<String>>Trait Implementations§
Source§impl Clone for TableState
impl Clone for TableState
Source§impl Debug for TableState
impl Debug for TableState
impl Eq for TableState
Source§impl From<&TableSchema> for TableState
impl From<&TableSchema> for TableState
Source§fn from(table: &TableSchema) -> Self
fn from(table: &TableSchema) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TableState
impl PartialEq for TableState
impl StructuralPartialEq for TableState
Auto Trait Implementations§
impl Freeze for TableState
impl RefUnwindSafe for TableState
impl Send for TableState
impl Sync for TableState
impl Unpin for TableState
impl UnsafeUnpin for TableState
impl UnwindSafe for TableState
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