pub struct StorageErrorBody {
pub status_code: Option<String>,
pub code: Option<StorageErrorCode>,
pub error: Option<String>,
pub message: Option<String>,
}Expand description
Standard Storage error JSON, for example
{"statusCode": "409", "code": "KeyAlreadyExists", "error": "Duplicate", "message": "..."}.
Every field is optional because some responses omit them.
Fields§
§status_code: Option<String>Status code reported in the body. The API sends it as a string; numbers are converted.
code: Option<StorageErrorCode>Machine-readable error code, for example KeyAlreadyExists.
error: Option<String>Short error name, for example not_found or Duplicate.
message: Option<String>Human-readable message.
Trait Implementations§
Source§impl Clone for StorageErrorBody
impl Clone for StorageErrorBody
Source§impl Debug for StorageErrorBody
impl Debug for StorageErrorBody
Source§impl<'de> Deserialize<'de> for StorageErrorBody
impl<'de> Deserialize<'de> for StorageErrorBody
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 StorageErrorBody
Source§impl PartialEq for StorageErrorBody
impl PartialEq for StorageErrorBody
impl StructuralPartialEq for StorageErrorBody
Auto Trait Implementations§
impl Freeze for StorageErrorBody
impl RefUnwindSafe for StorageErrorBody
impl Send for StorageErrorBody
impl Sync for StorageErrorBody
impl Unpin for StorageErrorBody
impl UnsafeUnpin for StorageErrorBody
impl UnwindSafe for StorageErrorBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.