pub struct CloudErrorBody {
pub code: Option<String>,
pub message: Option<String>,
pub error: Option<CloudErrorDetails>,
}Expand description
Wire shape of the typed error body returned by cloud APIs on 4xx/5xx responses.
Fields§
§code: Option<String>Flat machine-readable error code, when returned in this shape.
message: Option<String>Flat human-readable error message, when returned in this shape.
error: Option<CloudErrorDetails>Nested error object returned by the API error responder.
Trait Implementations§
Source§impl Clone for CloudErrorBody
impl Clone for CloudErrorBody
Source§fn clone(&self) -> CloudErrorBody
fn clone(&self) -> CloudErrorBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CloudErrorBody
impl Debug for CloudErrorBody
Source§impl<'de> Deserialize<'de> for CloudErrorBody
impl<'de> Deserialize<'de> for CloudErrorBody
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 CloudErrorBody
impl RefUnwindSafe for CloudErrorBody
impl Send for CloudErrorBody
impl Sync for CloudErrorBody
impl Unpin for CloudErrorBody
impl UnsafeUnpin for CloudErrorBody
impl UnwindSafe for CloudErrorBody
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