pub enum MigrationOutcome {
AlreadyCurrent {
constitution: Box<UserConstitution>,
preserved_unknown_keys: Vec<String>,
},
Migrated {
constitution: Box<UserConstitution>,
receipt: Box<MigrationReceipt>,
},
Rejected(MigrationRejection),
}Expand description
Outcome of a schema migration attempt.
Variants§
AlreadyCurrent
Already at the current schema; nothing was rewritten.
Migrated
Rejected(MigrationRejection)
Trait Implementations§
Source§impl Clone for MigrationOutcome
impl Clone for MigrationOutcome
Source§fn clone(&self) -> MigrationOutcome
fn clone(&self) -> MigrationOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MigrationOutcome
impl Debug for MigrationOutcome
impl Eq for MigrationOutcome
Source§impl PartialEq for MigrationOutcome
impl PartialEq for MigrationOutcome
impl StructuralPartialEq for MigrationOutcome
Auto Trait Implementations§
impl Freeze for MigrationOutcome
impl RefUnwindSafe for MigrationOutcome
impl Send for MigrationOutcome
impl Sync for MigrationOutcome
impl Unpin for MigrationOutcome
impl UnsafeUnpin for MigrationOutcome
impl UnwindSafe for MigrationOutcome
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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.