pub struct APIError {
pub message: String,
pub err_type: String,
pub code: i32,
}Expand description
API Error information structure
Fields§
§message: StringError message text
err_type: StringError type (renamed from “type” to avoid keyword conflict)
code: i32Error code number
Trait Implementations§
Source§impl<'de> Deserialize<'de> for APIError
impl<'de> Deserialize<'de> for APIError
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 APIError
impl RefUnwindSafe for APIError
impl Send for APIError
impl Sync for APIError
impl Unpin for APIError
impl UnwindSafe for APIError
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