Enum diesel::migration::RunMigrationsError [−][src]
pub enum RunMigrationsError { MigrationError(MigrationError), QueryError(Error), EmptyMigration, // some variants omitted }
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
impl Debug for RunMigrationsError
[src]
impl Debug for RunMigrationsError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for RunMigrationsError
[src]
impl PartialEq for RunMigrationsError
fn eq(&self, other: &RunMigrationsError) -> bool
[src]
fn eq(&self, other: &RunMigrationsError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RunMigrationsError) -> bool
[src]
fn ne(&self, other: &RunMigrationsError) -> bool
This method tests for !=
.
impl Error for RunMigrationsError
[src]
impl Error for RunMigrationsError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for RunMigrationsError
[src]
impl Display for RunMigrationsError
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<MigrationError> for RunMigrationsError
[src]
impl From<MigrationError> for RunMigrationsError
fn from(e: MigrationError) -> Self
[src]
fn from(e: MigrationError) -> Self
Performs the conversion.
impl From<Error> for RunMigrationsError
[src]
impl From<Error> for RunMigrationsError
impl From<Error> for RunMigrationsError
[src]
impl From<Error> for RunMigrationsError
Auto Trait Implementations
impl Send for RunMigrationsError
impl Send for RunMigrationsError
impl Sync for RunMigrationsError
impl Sync for RunMigrationsError