#[non_exhaustive]pub struct ApiError<'a> {
pub status: u16,
pub message: &'a str,
pub code: Option<&'a str>,
pub errors: Option<&'a Value>,
pub rate_limit: Option<&'a RateLimit>,
pub retry_after: Option<u64>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: u16§message: &'a str§code: Option<&'a str>§errors: Option<&'a Value>§rate_limit: Option<&'a RateLimit>§retry_after: Option<u64>Trait Implementations§
impl<'a> Copy for ApiError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ApiError<'a>
impl<'a> RefUnwindSafe for ApiError<'a>
impl<'a> Send for ApiError<'a>
impl<'a> Sync for ApiError<'a>
impl<'a> Unpin for ApiError<'a>
impl<'a> UnsafeUnpin for ApiError<'a>
impl<'a> UnwindSafe for ApiError<'a>
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