pub enum MigrateError {
InvalidVersion {
version: String,
},
Unsupported {
version: String,
},
FromFuture {
version: String,
},
NotAnObject,
Malformed {
step: &'static str,
pointer: String,
expected: &'static str,
},
Conflict {
step: &'static str,
pointer: String,
keys: Vec<String>,
},
MissingTable {
step: &'static str,
pointer: String,
},
Invalid {
pointer: String,
message: String,
},
}Expand description
Why a config could not be migrated to a valid current form.
Variants§
InvalidVersion
version is not x.y.z.
Unsupported
version predates 2.0.0.
FromFuture
version is newer than this crate’s schema.
NotAnObject
The config is not a JSON object.
Malformed
The value at pointer is not the shape its declared version wrote.
Conflict
An alias and its canonical key are both present at pointer.
MissingTable
The panel at pointer has no table to bind.
Invalid
The migrated config does not deserialize into the current schema.
Trait Implementations§
Source§impl Clone for MigrateError
impl Clone for MigrateError
Source§impl Debug for MigrateError
impl Debug for MigrateError
Source§impl Display for MigrateError
impl Display for MigrateError
Source§impl Error for MigrateError
impl Error for MigrateError
1.30.0 · 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<ValidateError> for MigrateError
impl From<ValidateError> for MigrateError
Source§fn from(error: ValidateError) -> Self
fn from(error: ValidateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MigrateError
impl PartialEq for MigrateError
Source§impl Serialize for MigrateError
impl Serialize for MigrateError
impl StructuralPartialEq for MigrateError
Auto Trait Implementations§
impl Forget for MigrateError
impl Freeze for MigrateError
impl RefUnwindSafe for MigrateError
impl Send for MigrateError
impl Sync for MigrateError
impl Unpin for MigrateError
impl UnsafeUnpin for MigrateError
impl UnwindSafe for MigrateError
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more