pub enum ApiErrorBody {
Suspended(Box<BanInfoResponse>),
ExportRateLimited(ExportRateLimited),
AppealRejected(AppealRejected),
AppealCreditsExhausted(AppealCreditsExhausted),
Plain(ErrorResponse),
}Expand description
Any error body the REST API sends. Most are {"error": "<message>"};
a few carry more: a suspension’s appeal and export links, when an
export may be retried, every problem with an appeal filing, or an
appeal-credit balance.
Variants§
Suspended(Box<BanInfoResponse>)
ExportRateLimited(ExportRateLimited)
AppealRejected(AppealRejected)
AppealCreditsExhausted(AppealCreditsExhausted)
Plain(ErrorResponse)
Implementations§
Trait Implementations§
Source§impl Clone for ApiErrorBody
impl Clone for ApiErrorBody
Source§impl Debug for ApiErrorBody
impl Debug for ApiErrorBody
Source§impl<'de> Deserialize<'de> for ApiErrorBody
impl<'de> Deserialize<'de> for ApiErrorBody
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 From<AppealCreditsExhausted> for ApiErrorBody
impl From<AppealCreditsExhausted> for ApiErrorBody
Source§fn from(body: AppealCreditsExhausted) -> Self
fn from(body: AppealCreditsExhausted) -> Self
Converts to this type from the input type.
Source§impl From<AppealRejected> for ApiErrorBody
impl From<AppealRejected> for ApiErrorBody
Source§fn from(body: AppealRejected) -> Self
fn from(body: AppealRejected) -> Self
Converts to this type from the input type.
Source§impl From<BanInfoResponse> for ApiErrorBody
impl From<BanInfoResponse> for ApiErrorBody
Source§fn from(body: BanInfoResponse) -> Self
fn from(body: BanInfoResponse) -> Self
Converts to this type from the input type.
Source§impl From<ErrorResponse> for ApiErrorBody
impl From<ErrorResponse> for ApiErrorBody
Source§fn from(body: ErrorResponse) -> Self
fn from(body: ErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<ExportRateLimited> for ApiErrorBody
impl From<ExportRateLimited> for ApiErrorBody
Source§fn from(body: ExportRateLimited) -> Self
fn from(body: ExportRateLimited) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ApiErrorBody
impl PartialEq for ApiErrorBody
Source§impl Serialize for ApiErrorBody
impl Serialize for ApiErrorBody
impl StructuralPartialEq for ApiErrorBody
Auto Trait Implementations§
impl Freeze for ApiErrorBody
impl RefUnwindSafe for ApiErrorBody
impl Send for ApiErrorBody
impl Sync for ApiErrorBody
impl Unpin for ApiErrorBody
impl UnsafeUnpin for ApiErrorBody
impl UnwindSafe for ApiErrorBody
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