pub enum StructureError {
MissingKey(&'static str),
TypeError(TypeError),
ValueError(ValueError),
}
Variants§
Trait Implementations§
Source§impl Clone for StructureError
impl Clone for StructureError
Source§fn clone(&self) -> StructureError
fn clone(&self) -> StructureError
Returns a copy of the value. Read more
1.0.0 · 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 StructureError
impl Debug for StructureError
Source§impl Display for StructureError
impl Display for StructureError
Source§impl Error for StructureError
impl Error for StructureError
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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<&'static str> for StructureError
impl From<&'static str> for StructureError
Source§fn from(key: &'static str) -> StructureError
fn from(key: &'static str) -> StructureError
Converts to this type from the input type.
Source§impl From<StructureError> for Error
impl From<StructureError> for Error
Source§fn from(err: StructureError) -> Error
fn from(err: StructureError) -> Error
Converts to this type from the input type.
Source§impl From<TypeError> for StructureError
impl From<TypeError> for StructureError
Source§fn from(err: TypeError) -> StructureError
fn from(err: TypeError) -> StructureError
Converts to this type from the input type.
Source§impl From<ValueError> for StructureError
impl From<ValueError> for StructureError
Source§fn from(err: ValueError) -> StructureError
fn from(err: ValueError) -> StructureError
Converts to this type from the input type.
Source§impl PartialEq for StructureError
impl PartialEq for StructureError
impl Eq for StructureError
impl StructuralPartialEq for StructureError
Auto Trait Implementations§
impl Freeze for StructureError
impl RefUnwindSafe for StructureError
impl Send for StructureError
impl Sync for StructureError
impl Unpin for StructureError
impl UnwindSafe for StructureError
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