pub enum ObjectConversionError {
FailedDeserialization(Error),
ImproperType {
expected: String,
got: String,
},
MissingId,
}
Expand description
The error produced when something has gone wrong converting into ResourceObject
’s
ObjectConversionError::FailedDeserialization
is produced when the attributes
field
fails to deserialize
ObjectConversionError::ImproperType
is produced when the type of the object does not
match the output of the attribute object’s kind
function
Variants§
Trait Implementations§
Source§impl Debug for ObjectConversionError
impl Debug for ObjectConversionError
Source§impl Display for ObjectConversionError
impl Display for ObjectConversionError
Source§impl Error for ObjectConversionError
impl Error for ObjectConversionError
Source§fn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎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<Error> for ObjectConversionError
impl From<Error> for ObjectConversionError
Source§fn from(err: SerdeError) -> Self
fn from(err: SerdeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ObjectConversionError
impl !RefUnwindSafe for ObjectConversionError
impl Send for ObjectConversionError
impl Sync for ObjectConversionError
impl Unpin for ObjectConversionError
impl !UnwindSafe for ObjectConversionError
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