pub struct GenericError {
pub debug: Option<String>,
pub error: String,
pub error_description: Option<String>,
pub status_code: Option<i64>,
}
Expand description
GenericError : Error responses are sent when an error (e.g. unauthorized, bad request, …) occurred.
Fields§
§debug: Option<String>
Debug contains debug information. This is usually not available and has to be enabled.
error: String
Name is the error name.
error_description: Option<String>
Description contains further information on the nature of the error.
status_code: Option<i64>
Code represents the error status code (404, 403, 401, …).
Implementations§
Source§impl GenericError
impl GenericError
Sourcepub fn new(error: String) -> GenericError
pub fn new(error: String) -> GenericError
Error responses are sent when an error (e.g. unauthorized, bad request, …) occurred.
Trait Implementations§
Source§impl Clone for GenericError
impl Clone for GenericError
Source§fn clone(&self) -> GenericError
fn clone(&self) -> GenericError
Returns a copy 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 GenericError
impl Debug for GenericError
Source§impl<'de> Deserialize<'de> for GenericError
impl<'de> Deserialize<'de> for GenericError
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 GenericError
impl PartialEq for GenericError
Source§impl Serialize for GenericError
impl Serialize for GenericError
impl StructuralPartialEq for GenericError
Auto Trait Implementations§
impl Freeze for GenericError
impl RefUnwindSafe for GenericError
impl Send for GenericError
impl Sync for GenericError
impl Unpin for GenericError
impl UnwindSafe for GenericError
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