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
EmptyMigrationThe provided migration was empty
Trait Implementations
impl Debug for RunMigrationsError[src]
impl Debug for RunMigrationsErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for RunMigrationsError[src]
impl PartialEq for RunMigrationsErrorfn eq(&self, other: &RunMigrationsError) -> bool[src]
fn eq(&self, other: &RunMigrationsError) -> boolThis 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) -> boolThis method tests for !=.
impl Error for RunMigrationsError[src]
impl Error for RunMigrationsErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis 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 RunMigrationsErrorfn 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 RunMigrationsErrorfn from(e: MigrationError) -> Self[src]
fn from(e: MigrationError) -> SelfPerforms the conversion.
impl From<Error> for RunMigrationsError[src]
impl From<Error> for RunMigrationsErrorimpl From<Error> for RunMigrationsError[src]
impl From<Error> for RunMigrationsErrorAuto Trait Implementations
impl Send for RunMigrationsError
impl Send for RunMigrationsErrorimpl Sync for RunMigrationsError
impl Sync for RunMigrationsError