pub struct ErrorSerializable {
pub code: u16,
pub message: String,
pub errors: Value,
}Fields§
§code: u16§message: String§errors: ValueImplementations§
Source§impl ErrorSerializable
impl ErrorSerializable
pub fn from_error(error: &Error) -> Self
pub fn error_string(error: &Error) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorSerializable
impl<'de> Deserialize<'de> for ErrorSerializable
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
Auto Trait Implementations§
impl Freeze for ErrorSerializable
impl RefUnwindSafe for ErrorSerializable
impl Send for ErrorSerializable
impl Sync for ErrorSerializable
impl Unpin for ErrorSerializable
impl UnwindSafe for ErrorSerializable
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