pub struct ErrorObject {
pub code: i32,
pub message: String,
pub data: Option<Value>,
}
Expand description
Error object
Fieldsยง
ยงcode: i32
Error code
message: String
Error message
data: Option<Value>
Additional error data
Trait Implementationsยง
Sourceยงimpl Clone for ErrorObject
impl Clone for ErrorObject
Sourceยงfn clone(&self) -> ErrorObject
fn clone(&self) -> ErrorObject
Returns a duplicate 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 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
Auto Trait Implementationsยง
impl Freeze for ErrorObject
impl RefUnwindSafe for ErrorObject
impl Send for ErrorObject
impl Sync for ErrorObject
impl Unpin 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