pub struct GoTrueErrorResponse {
pub error: Option<String>,
pub error_description: Option<String>,
pub msg: Option<String>,
pub message: Option<String>,
pub code: Option<i32>,
pub error_code: Option<String>,
}Expand description
Error response format from the GoTrue API.
GoTrue may return errors in different shapes; this covers the common fields.
Fields§
§error: Option<String>§error_description: Option<String>§msg: Option<String>§message: Option<String>§code: Option<i32>§error_code: Option<String>Implementations§
Source§impl GoTrueErrorResponse
impl GoTrueErrorResponse
Sourcepub fn error_message(&self) -> String
pub fn error_message(&self) -> String
Extract the most informative error message from the response.
Trait Implementations§
Source§impl Clone for GoTrueErrorResponse
impl Clone for GoTrueErrorResponse
Source§fn clone(&self) -> GoTrueErrorResponse
fn clone(&self) -> GoTrueErrorResponse
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 GoTrueErrorResponse
impl Debug for GoTrueErrorResponse
Source§impl<'de> Deserialize<'de> for GoTrueErrorResponse
impl<'de> Deserialize<'de> for GoTrueErrorResponse
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 GoTrueErrorResponse
impl RefUnwindSafe for GoTrueErrorResponse
impl Send for GoTrueErrorResponse
impl Sync for GoTrueErrorResponse
impl Unpin for GoTrueErrorResponse
impl UnsafeUnpin for GoTrueErrorResponse
impl UnwindSafe for GoTrueErrorResponse
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