pub enum SchemaVersionFailure {
MissingTable {
table: &'static str,
},
MissingColumn {
table: &'static str,
column: &'static str,
},
UnknownMigration {
name: String,
},
Mismatch {
table: &'static str,
row_id: String,
expected: u16,
actual: u16,
},
IllegalIntermediateShape {
invariant: &'static str,
detail: String,
},
}Expand description
Schema-shape or schema-version invariant failure.
Variants§
MissingTable
A required table is missing.
MissingColumn
A required table is missing a required column.
UnknownMigration
The migrations table contains a migration this binary does not know.
Mismatch
A persisted row carries a different schema version than this binary.
IllegalIntermediateShape
Schema v2 expand/backfill metadata is present but not complete enough to trust.
Implementations§
Trait Implementations§
Source§impl Clone for SchemaVersionFailure
impl Clone for SchemaVersionFailure
Source§fn clone(&self) -> SchemaVersionFailure
fn clone(&self) -> SchemaVersionFailure
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaVersionFailure
impl Debug for SchemaVersionFailure
Source§impl PartialEq for SchemaVersionFailure
impl PartialEq for SchemaVersionFailure
Source§fn eq(&self, other: &SchemaVersionFailure) -> bool
fn eq(&self, other: &SchemaVersionFailure) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SchemaVersionFailure
impl StructuralPartialEq for SchemaVersionFailure
Auto Trait Implementations§
impl Freeze for SchemaVersionFailure
impl RefUnwindSafe for SchemaVersionFailure
impl Send for SchemaVersionFailure
impl Sync for SchemaVersionFailure
impl Unpin for SchemaVersionFailure
impl UnsafeUnpin for SchemaVersionFailure
impl UnwindSafe for SchemaVersionFailure
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