pub struct Error {
pub code: i64,
pub msg: String,
}
Expand description
Error
JSON schema
{
"type": "object",
"required": [
"code",
"msg"
],
"properties": {
"code": {
"description": "Error code",
"type": "integer",
"format": "int64"
},
"msg": {
"description": "Error message",
"examples": [
"error message"
],
"type": "string"
}
}
}
Fields§
§code: i64
Error code
msg: String
Error message
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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 Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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