Enum diesel::migration::RunMigrationsError
source · [−]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
sourceimpl Debug for RunMigrationsError
impl Debug for RunMigrationsError
sourceimpl Display for RunMigrationsError
impl Display for RunMigrationsError
sourceimpl Error for RunMigrationsError
impl Error for RunMigrationsError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<Error> for RunMigrationsError
impl From<Error> for RunMigrationsError
sourceimpl From<Error> for RunMigrationsError
impl From<Error> for RunMigrationsError
sourceimpl From<MigrationError> for RunMigrationsError
impl From<MigrationError> for RunMigrationsError
sourcefn from(e: MigrationError) -> Self
fn from(e: MigrationError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<RunMigrationsError> for RunMigrationsError
impl PartialEq<RunMigrationsError> for RunMigrationsError
sourcefn eq(&self, other: &RunMigrationsError) -> bool
fn eq(&self, other: &RunMigrationsError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RunMigrationsError) -> bool
fn ne(&self, other: &RunMigrationsError) -> bool
This method tests for !=
.
impl StructuralPartialEq for RunMigrationsError
Auto Trait Implementations
impl !RefUnwindSafe for RunMigrationsError
impl Send for RunMigrationsError
impl Sync for RunMigrationsError
impl Unpin for RunMigrationsError
impl !UnwindSafe for RunMigrationsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more