pub struct TableDelta {
pub table: String,
pub extends: String,
pub add_columns: Vec<ColumnSchema>,
pub drop_columns: Vec<String>,
pub rename_columns: Vec<(String, String)>,
pub alter_columns: Vec<ColumnSchema>,
}Expand description
Schema delta for a table (used in extends migrations)
Fields§
§table: StringTable name
extends: StringBase migration this extends
add_columns: Vec<ColumnSchema>Columns to add
drop_columns: Vec<String>Columns to drop (by name)
rename_columns: Vec<(String, String)>Column renames (from -> to)
alter_columns: Vec<ColumnSchema>Column modifications
Trait Implementations§
Source§impl Clone for TableDelta
impl Clone for TableDelta
Source§fn clone(&self) -> TableDelta
fn clone(&self) -> TableDelta
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 moreSource§impl Debug for TableDelta
impl Debug for TableDelta
Source§impl<'de> Deserialize<'de> for TableDelta
impl<'de> Deserialize<'de> for TableDelta
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
Source§impl PartialEq for TableDelta
impl PartialEq for TableDelta
Source§impl Serialize for TableDelta
impl Serialize for TableDelta
impl Eq for TableDelta
impl StructuralPartialEq for TableDelta
Auto Trait Implementations§
impl Freeze for TableDelta
impl RefUnwindSafe for TableDelta
impl Send for TableDelta
impl Sync for TableDelta
impl Unpin for TableDelta
impl UnwindSafe for TableDelta
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