pub enum ReplayError {
Show 25 variants
MigrationNotFound(String),
TableAlreadyExists(String),
TableNotFound(String),
RenameTargetExists {
old: String,
new: String,
},
ColumnAlreadyExists {
table: String,
column: String,
},
ColumnNotFound {
table: String,
column: String,
},
ForeignKeyAlreadyExists {
table: String,
fk: String,
},
ForeignKeyNotFound {
table: String,
fk: String,
},
IndexAlreadyExists {
table: String,
index: String,
},
IndexNotFound {
table: String,
index: String,
},
ConstraintAlreadyExists {
table: String,
constraint: String,
},
ConstraintNotFound {
table: String,
constraint: String,
},
MultiplePrimaryKeys(String),
PrimaryKeyMutation(String),
FunctionAlreadyExists(String),
FunctionNotFound(String),
TriggerAlreadyExists {
table: String,
trigger: String,
},
TriggerNotFound {
table: String,
trigger: String,
},
ViewAlreadyExists(String),
ViewNotFound(String),
ExtensionAlreadyExists(String),
ExtensionNotFound(String),
EnumAlreadyExists(String),
EnumNotFound(String),
WithContext {
migration: String,
op_num: usize,
inner: Box<ReplayError>,
},
}Variants§
MigrationNotFound(String)
TableAlreadyExists(String)
TableNotFound(String)
RenameTargetExists
ColumnAlreadyExists
ColumnNotFound
ForeignKeyAlreadyExists
ForeignKeyNotFound
IndexAlreadyExists
IndexNotFound
ConstraintAlreadyExists
ConstraintNotFound
MultiplePrimaryKeys(String)
PrimaryKeyMutation(String)
FunctionAlreadyExists(String)
FunctionNotFound(String)
TriggerAlreadyExists
TriggerNotFound
ViewAlreadyExists(String)
ViewNotFound(String)
ExtensionAlreadyExists(String)
ExtensionNotFound(String)
EnumAlreadyExists(String)
EnumNotFound(String)
WithContext
Trait Implementations§
Source§impl Debug for ReplayError
impl Debug for ReplayError
Source§impl Display for ReplayError
impl Display for ReplayError
Source§impl Error for ReplayError
impl Error for ReplayError
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ReplayError> for OfflineError
impl From<ReplayError> for OfflineError
Source§fn from(source: ReplayError) -> Self
fn from(source: ReplayError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReplayError
impl PartialEq for ReplayError
impl StructuralPartialEq for ReplayError
Auto Trait Implementations§
impl Freeze for ReplayError
impl RefUnwindSafe for ReplayError
impl Send for ReplayError
impl Sync for ReplayError
impl Unpin for ReplayError
impl UnsafeUnpin for ReplayError
impl UnwindSafe for ReplayError
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