pub enum DriftFinding {
ExtraTable {
table: String,
},
MissingTable {
table: String,
},
ColumnTypeMismatch {
table: String,
column: String,
in_migration: String,
in_database: String,
},
ExtraColumn {
table: String,
column: String,
},
MissingColumn {
table: String,
column: String,
},
ExtraIndex {
table: String,
index: String,
},
MissingIndex {
table: String,
index: String,
},
NullableMismatch {
table: String,
column: String,
in_migration: bool,
in_database: bool,
},
}Variants§
ExtraTable
Table exists in the DB but not in any migration file
MissingTable
Table is in migration files but not in the DB (migration not run yet)
ColumnTypeMismatch
Column type in DB doesn’t match the migration definition
ExtraColumn
Column exists in DB but not in migration
MissingColumn
Column is in migration but not in DB
ExtraIndex
Index exists in DB but the migration never created it
MissingIndex
Migration creates an index that isn’t in the DB (not applied)
NullableMismatch
Nullable mismatch
Implementations§
Source§impl DriftFinding
impl DriftFinding
Trait Implementations§
Source§impl Clone for DriftFinding
impl Clone for DriftFinding
Source§fn clone(&self) -> DriftFinding
fn clone(&self) -> DriftFinding
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 DriftFinding
impl Debug for DriftFinding
Source§impl<'de> Deserialize<'de> for DriftFinding
impl<'de> Deserialize<'de> for DriftFinding
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
Auto Trait Implementations§
impl Freeze for DriftFinding
impl RefUnwindSafe for DriftFinding
impl Send for DriftFinding
impl Sync for DriftFinding
impl Unpin for DriftFinding
impl UnsafeUnpin for DriftFinding
impl UnwindSafe for DriftFinding
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more