pub enum RunMigrationsError {
MigrationError(MigrationError),
QueryError(Error),
EmptyMigration,
// some variants omitted
}
Expand description
Errors that occur while running migrations
Variants§
MigrationError(MigrationError)
A general migration error occured
QueryError(Error)
The provided migration included an invalid query
EmptyMigration
The provided migration was empty
Trait Implementations§
Source§impl Debug for RunMigrationsError
impl Debug for RunMigrationsError
Source§impl Display for RunMigrationsError
impl Display for RunMigrationsError
Source§impl Error for RunMigrationsError
impl Error for RunMigrationsError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl From<Error> for RunMigrationsError
impl From<Error> for RunMigrationsError
Source§impl From<Error> for RunMigrationsError
impl From<Error> for RunMigrationsError
Source§impl From<MigrationError> for RunMigrationsError
impl From<MigrationError> for RunMigrationsError
Source§fn from(e: MigrationError) -> Self
fn from(e: MigrationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RunMigrationsError
impl PartialEq for RunMigrationsError
impl StructuralPartialEq for RunMigrationsError
Auto Trait Implementations§
impl Freeze for RunMigrationsError
impl !RefUnwindSafe for RunMigrationsError
impl Send for RunMigrationsError
impl Sync for RunMigrationsError
impl Unpin for RunMigrationsError
impl !UnwindSafe for RunMigrationsError
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