#[non_exhaustive]pub struct ErrorObject {
pub code: i64,
pub message: String,
pub data: Option<Box<ErrorData>>,
}Expand description
The error member of an error response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: i64Registry code. Typed as a plain integer on the wire; the value domain is the registry below.
message: StringHuman-readable message. Never a branch point.
data: Option<Box<ErrorData>>Structured detail; carries kind when present.
Trait Implementations§
Source§impl Clone for ErrorObject
impl Clone for ErrorObject
Source§impl Debug for ErrorObject
impl Debug for ErrorObject
Source§impl<'de> Deserialize<'de> for ErrorObject
impl<'de> Deserialize<'de> for ErrorObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ErrorObject
impl PartialEq for ErrorObject
Source§impl Serialize for ErrorObject
impl Serialize for ErrorObject
impl StructuralPartialEq for ErrorObject
Source§impl TryFrom<ErrorObject> for MspError
impl TryFrom<ErrorObject> for MspError
Source§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ErrorObject
impl RefUnwindSafe for ErrorObject
impl Send for ErrorObject
impl Sync for ErrorObject
impl Unpin for ErrorObject
impl UnsafeUnpin for ErrorObject
impl UnwindSafe for ErrorObject
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