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,
panel: 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 workspace panel panel has no table to bind.
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 PartialEq for MigrateError
impl PartialEq for MigrateError
Source§impl Serialize for MigrateError
impl Serialize for MigrateError
impl StructuralPartialEq for MigrateError
Auto Trait Implementations§
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§
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