pub enum DiffWarning {
PrimaryKeyChange {
table: String,
column: String,
new_value: bool,
},
AutoincrementChange {
table: String,
column: String,
new_value: bool,
},
ColumnOrderChanged {
table: String,
old_order: Vec<String>,
new_order: Vec<String>,
},
}Expand description
Informational warnings about changes that the diff engine detected but cannot (or should not) translate into DDL operations automatically.
Variants§
PrimaryKeyChange
A column’s primary key status changed. This typically requires table recreation on most databases.
Fields
AutoincrementChange
A column’s autoincrement status changed. Most databases cannot alter this without recreating the table.
Fields
ColumnOrderChanged
The relative ordering of columns changed. Most databases cannot reorder columns without recreating the table.
Trait Implementations§
Source§impl Clone for DiffWarning
impl Clone for DiffWarning
Source§fn clone(&self) -> DiffWarning
fn clone(&self) -> DiffWarning
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 DiffWarning
impl Debug for DiffWarning
Source§impl PartialEq for DiffWarning
impl PartialEq for DiffWarning
impl StructuralPartialEq for DiffWarning
Auto Trait Implementations§
impl Freeze for DiffWarning
impl RefUnwindSafe for DiffWarning
impl Send for DiffWarning
impl Sync for DiffWarning
impl Unpin for DiffWarning
impl UnsafeUnpin for DiffWarning
impl UnwindSafe for DiffWarning
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