pub enum MigrationError {
DeserializationError(String),
SerializationError(String),
EntityNotFound(String),
MigrationPathNotDefined {
entity: String,
version: String,
},
MigrationStepFailed {
from: String,
to: String,
error: String,
},
CircularMigrationPath {
entity: String,
path: String,
},
InvalidVersionOrder {
entity: String,
from: String,
to: String,
},
}Expand description
Error types that can occur during migration operations.
Variants§
DeserializationError(String)
Failed to deserialize the data.
SerializationError(String)
Failed to serialize the data.
EntityNotFound(String)
The requested entity type was not found in the migrator.
MigrationPathNotDefined
No migration path is defined for the given entity and version.
MigrationStepFailed
A migration step failed during execution.
Fields
CircularMigrationPath
A circular migration path was detected.
InvalidVersionOrder
Version ordering is invalid (not following semver rules).
Trait Implementations§
Source§impl Debug for MigrationError
impl Debug for MigrationError
Source§impl Display for MigrationError
impl Display for MigrationError
Source§impl Error for MigrationError
impl Error for MigrationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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