pub enum MigratorError {
RecipeError(RecipeError),
NoBaseline(),
UnknownBaseline(String),
UnknownTarget {
version: String,
available: Option<String>,
},
NoLogTable(),
UnknownMigration {
log: Changelog,
},
MissingMigration {
script: RecipeScript,
},
ConflictedMigration {
log: Changelog,
script: RecipeScript,
},
PgError(Error),
}Expand description
An Error occurred during a migration cycle
Variants§
RecipeError(RecipeError)
NoBaseline()
UnknownBaseline(String)
UnknownTarget
NoLogTable()
UnknownMigration
MissingMigration
Fields
§
script: RecipeScriptConflictedMigration
PgError(Error)
Trait Implementations§
Source§impl Debug for MigratorError
impl Debug for MigratorError
Source§impl Display for MigratorError
impl Display for MigratorError
Source§impl Error for MigratorError
impl Error for MigratorError
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()
Source§impl From<Error> for MigratorError
impl From<Error> for MigratorError
Source§fn from(err: PgError) -> MigratorError
fn from(err: PgError) -> MigratorError
Converts to this type from the input type.
Source§impl From<RecipeError> for MigratorError
impl From<RecipeError> for MigratorError
Source§fn from(err: RecipeError) -> MigratorError
fn from(err: RecipeError) -> MigratorError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MigratorError
impl !RefUnwindSafe for MigratorError
impl Send for MigratorError
impl Sync for MigratorError
impl Unpin for MigratorError
impl !UnwindSafe for MigratorError
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