pub struct AuthErrorResponse {
pub error: String,
pub error_description: Option<String>,
}Expand description
The error body of the token service (it is a Keycloak server).
§Examples
use brokapi_bcs_protocol::error::AuthErrorResponse;
let e: AuthErrorResponse =
serde_json::from_str(r#"{"error":"invalid_grant","error_description":"Token is not active"}"#)?;
assert_eq!(e.error, "invalid_grant");Fields§
§error: StringMachine code, for example invalid_grant.
error_description: Option<String>Human text. The client puts it in BcsApiError::AuthError when it is present.
Trait Implementations§
Source§impl Debug for AuthErrorResponse
impl Debug for AuthErrorResponse
Source§impl<'de> Deserialize<'de> for AuthErrorResponse
impl<'de> Deserialize<'de> for AuthErrorResponse
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 AuthErrorResponse
impl RefUnwindSafe for AuthErrorResponse
impl Send for AuthErrorResponse
impl Sync for AuthErrorResponse
impl Unpin for AuthErrorResponse
impl UnsafeUnpin for AuthErrorResponse
impl UnwindSafe for AuthErrorResponse
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