pub struct Problem {
pub code: String,
pub status: u16,
pub title: String,
pub detail: Option<String>,
pub retryable: bool,
pub lease_expires_at: Option<String>,
}Expand description
An application/problem+json answer.
Fields§
§code: StringThe stable code, as sent.
status: u16The HTTP status.
title: StringA short description.
detail: Option<String>More about this occurrence.
retryable: boolWhether repeating the request later may succeed.
lease_expires_at: Option<String>For LEASE_HELD and REWRITE_IN_PROGRESS: when the lease ends.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Problem
impl<'de> Deserialize<'de> for Problem
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
impl Eq for Problem
impl StructuralPartialEq for Problem
Auto Trait Implementations§
impl Freeze for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
impl UnwindSafe for Problem
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