pub struct GenericError {
pub status: u32,
pub code: String,
pub message: String,
pub invalid_input: Option<InvalidInputError>,
pub rate_limit: Option<RateLimitError>,
}Expand description
Catches generic error cases not explicitly defined in ApiError
Fields§
§status: u32HTTP Status Code, e.g. 404.
code: StringShort error code, e.g. "BOOT_NOT_AVAILABLE"
message: StringHuman-readable explanation of the error.
invalid_input: Option<InvalidInputError>Invalid input description.
Only available if code
is "INVALID_INPUT"
rate_limit: Option<RateLimitError>Rate limit error description.
Only available if code
is "RATE_LIMIT_EXCEEDED"
Trait Implementations§
Source§impl Debug for GenericError
impl Debug for GenericError
Source§impl<'de> Deserialize<'de> for GenericError
impl<'de> Deserialize<'de> for GenericError
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 Display for GenericError
impl Display for GenericError
Auto Trait Implementations§
impl Freeze for GenericError
impl RefUnwindSafe for GenericError
impl Send for GenericError
impl Sync for GenericError
impl Unpin for GenericError
impl UnwindSafe for GenericError
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