pub enum AutoMigratePrecheck<'def> {
CheckAddSequenceRangeValid(<SequenceDef as ModuleDefLookup>::Key<'def>),
}Expand description
Checks that must be performed before performing an automatic migration. These checks can access table contents and other database state.
Variants§
CheckAddSequenceRangeValid(<SequenceDef as ModuleDefLookup>::Key<'def>)
Perform a check that adding a sequence is valid (the relevant column contains no values greater than the sequence’s start value).
Trait Implementations§
Source§impl<'def> Debug for AutoMigratePrecheck<'def>
impl<'def> Debug for AutoMigratePrecheck<'def>
Source§impl<'def> Ord for AutoMigratePrecheck<'def>
impl<'def> Ord for AutoMigratePrecheck<'def>
Source§fn cmp(&self, other: &AutoMigratePrecheck<'def>) -> Ordering
fn cmp(&self, other: &AutoMigratePrecheck<'def>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'def> PartialEq for AutoMigratePrecheck<'def>
impl<'def> PartialEq for AutoMigratePrecheck<'def>
Source§impl<'def> PartialOrd for AutoMigratePrecheck<'def>
impl<'def> PartialOrd for AutoMigratePrecheck<'def>
impl<'def> Eq for AutoMigratePrecheck<'def>
impl<'def> StructuralPartialEq for AutoMigratePrecheck<'def>
Auto Trait Implementations§
impl<'def> Freeze for AutoMigratePrecheck<'def>
impl<'def> RefUnwindSafe for AutoMigratePrecheck<'def>
impl<'def> Send for AutoMigratePrecheck<'def>
impl<'def> Sync for AutoMigratePrecheck<'def>
impl<'def> Unpin for AutoMigratePrecheck<'def>
impl<'def> UnsafeUnpin for AutoMigratePrecheck<'def>
impl<'def> UnwindSafe for AutoMigratePrecheck<'def>
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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