Enum diesel_migrations::MigrationError [−][src]
pub enum MigrationError { MigrationDirectoryNotFound, UnknownMigrationFormat(PathBuf), IoError(Error), UnknownMigrationVersion(String), NoMigrationRun, // some variants omitted }
Expand description
Errors that occur while preparing to run migrations
Variants
The migration directory wasn’t found
UnknownMigrationFormat(PathBuf)
Provided migration was in an unknown format
IoError(Error)
General system IO error
UnknownMigrationVersion(String)
Provided migration had an incompatible version number
No migrations had to be/ could be run
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for MigrationError
impl Send for MigrationError
impl Sync for MigrationError
impl Unpin for MigrationError
impl !UnwindSafe for MigrationError
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more