pub enum MigrationError {
NoPath {
from: u32,
to: u32,
},
StepFailed {
from: u32,
to: u32,
reason: String,
},
GapInChain {
missing: u32,
},
FutureVersion {
found: u32,
current: u32,
},
Deserialization(String),
Serialization(String),
}Expand description
Error during migration.
Variants§
NoPath
No migration path exists between the source and target versions.
StepFailed
A migration step failed.
GapInChain
The version chain has a gap (e.g., v1→v3 without v2).
FutureVersion
The source version is newer than the current version (forward compat).
Deserialization(String)
Deserialization failed.
Serialization(String)
Serialization failed.
Trait Implementations§
Source§impl Clone for MigrationError
impl Clone for MigrationError
Source§fn clone(&self) -> MigrationError
fn clone(&self) -> MigrationError
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 MigrationError
impl Debug for MigrationError
Source§impl Display for MigrationError
impl Display for MigrationError
Source§impl PartialEq for MigrationError
impl PartialEq for MigrationError
impl StructuralPartialEq for MigrationError
Auto Trait Implementations§
impl Freeze for MigrationError
impl RefUnwindSafe for MigrationError
impl Send for MigrationError
impl Sync for MigrationError
impl Unpin for MigrationError
impl UnwindSafe for MigrationError
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