pub struct CustomJwtAuthenticateRequestBody {
pub mode: Option<CustomJwtAuthenticateRequestBodyMode>,
pub token: Option<String>,
}Expand description
The request body for authenticating with a custom JWT
JSON schema
{
"title": "CustomJwtAuthenticateRequestBody",
"description": "The request body for authenticating with a custom JWT",
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"login-or-sign-up",
"no-signup"
]
},
"token": {
"type": "string"
}
}
}Fields§
§mode: Option<CustomJwtAuthenticateRequestBodyMode>§token: Option<String>Trait Implementations§
Source§impl Clone for CustomJwtAuthenticateRequestBody
impl Clone for CustomJwtAuthenticateRequestBody
Source§fn clone(&self) -> CustomJwtAuthenticateRequestBody
fn clone(&self) -> CustomJwtAuthenticateRequestBody
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<'de> Deserialize<'de> for CustomJwtAuthenticateRequestBody
impl<'de> Deserialize<'de> for CustomJwtAuthenticateRequestBody
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 From<&CustomJwtAuthenticateRequestBody> for CustomJwtAuthenticateRequestBody
impl From<&CustomJwtAuthenticateRequestBody> for CustomJwtAuthenticateRequestBody
Source§fn from(value: &CustomJwtAuthenticateRequestBody) -> Self
fn from(value: &CustomJwtAuthenticateRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CustomJwtAuthenticateRequestBody
impl RefUnwindSafe for CustomJwtAuthenticateRequestBody
impl Send for CustomJwtAuthenticateRequestBody
impl Sync for CustomJwtAuthenticateRequestBody
impl Unpin for CustomJwtAuthenticateRequestBody
impl UnsafeUnpin for CustomJwtAuthenticateRequestBody
impl UnwindSafe for CustomJwtAuthenticateRequestBody
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