pub struct GenericErrorContent {
pub debug: Option<String>,
pub error: Option<String>,
pub error_description: Option<String>,
pub id: Option<IdEnum>,
pub message: Option<String>,
pub status_code: Option<i64>,
}
Expand description
GenericErrorContent : Error response
Fields§
§debug: Option<String>
Debug contains debug information. This is usually not available and has to be enabled.
error: Option<String>
Name is the error name.
error_description: Option<String>
Description contains further information on the nature of the error.
id: Option<IdEnum>
ID is a unique error ID. feature_not_available ErrFeatureNotAvailable quota_exceeded ErrQuotaExceeded
message: Option<String>
Message contains the error message.
status_code: Option<i64>
Code represents the error status code (404, 403, 401, …).
Implementations§
Source§impl GenericErrorContent
impl GenericErrorContent
Sourcepub fn new() -> GenericErrorContent
pub fn new() -> GenericErrorContent
Error response
Trait Implementations§
Source§impl Clone for GenericErrorContent
impl Clone for GenericErrorContent
Source§fn clone(&self) -> GenericErrorContent
fn clone(&self) -> GenericErrorContent
Returns a duplicate of the value. Read more
1.0.0 · 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 GenericErrorContent
impl Debug for GenericErrorContent
Source§impl Default for GenericErrorContent
impl Default for GenericErrorContent
Source§fn default() -> GenericErrorContent
fn default() -> GenericErrorContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenericErrorContent
impl<'de> Deserialize<'de> for GenericErrorContent
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 PartialEq for GenericErrorContent
impl PartialEq for GenericErrorContent
Source§impl Serialize for GenericErrorContent
impl Serialize for GenericErrorContent
impl StructuralPartialEq for GenericErrorContent
Auto Trait Implementations§
impl Freeze for GenericErrorContent
impl RefUnwindSafe for GenericErrorContent
impl Send for GenericErrorContent
impl Sync for GenericErrorContent
impl Unpin for GenericErrorContent
impl UnwindSafe for GenericErrorContent
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