pub struct ErrorSchema {
pub error: Option<String>,
pub error_description: Option<String>,
pub code: Option<i32>,
pub msg: Option<String>,
pub weak_password: Option<WeakPassword>,
}Expand description
Error response schema.
Fields§
§error: Option<String>Certain responses will contain this property with the provided values.
Usually one of these:
invalid_requestunauthorized_clientaccess_deniedserver_errortemporarily_unavailableunsupported_otp_type
error_description: Option<String>Certain responses that have an error property may have this property which describes the
error.
code: Option<i32>The HTTP status code. Usually missing if error is present.
msg: Option<String>A basic message describing the problem with the request. Usually missing if error is
present.
weak_password: Option<WeakPassword>Only returned on the /signup endpoint if the password used is too weak. Inspect the
reasons and msg property to identify the causes.
Implementations§
Source§impl ErrorSchema
impl ErrorSchema
Sourcepub fn builder() -> ErrorSchemaBuilder<((), (), (), (), ())>
pub fn builder() -> ErrorSchemaBuilder<((), (), (), (), ())>
Create a builder for building ErrorSchema.
On the builder, call .error(...)(optional), .error_description(...)(optional), .code(...)(optional), .msg(...)(optional), .weak_password(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ErrorSchema.
Trait Implementations§
Source§impl Clone for ErrorSchema
impl Clone for ErrorSchema
Source§fn clone(&self) -> ErrorSchema
fn clone(&self) -> ErrorSchema
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ErrorSchema
impl Debug for ErrorSchema
Source§impl<'de> Deserialize<'de> for ErrorSchema
impl<'de> Deserialize<'de> for ErrorSchema
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>,
Source§impl Display for ErrorSchema
impl Display for ErrorSchema
Source§impl Error for ErrorSchema
impl Error for ErrorSchema
1.30.0§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ErrorSchema> for RefreshStreamError
impl From<ErrorSchema> for RefreshStreamError
Source§fn from(source: ErrorSchema) -> Self
fn from(source: ErrorSchema) -> Self
Auto Trait Implementations§
impl Freeze for ErrorSchema
impl RefUnwindSafe for ErrorSchema
impl Send for ErrorSchema
impl Sync for ErrorSchema
impl Unpin for ErrorSchema
impl UnwindSafe for ErrorSchema
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)