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 Default for CustomJwtAuthenticateRequestBody
impl Default for CustomJwtAuthenticateRequestBody
Source§fn default() -> CustomJwtAuthenticateRequestBody
fn default() -> CustomJwtAuthenticateRequestBody
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomJwtAuthenticateRequestBody
impl<'de> Deserialize<'de> for CustomJwtAuthenticateRequestBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomJwtAuthenticateRequestBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CustomJwtAuthenticateRequestBody, <__D as Deserializer<'de>>::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,
) -> CustomJwtAuthenticateRequestBody
fn from( value: &CustomJwtAuthenticateRequestBody, ) -> CustomJwtAuthenticateRequestBody
Converts to this type from the input type.
Source§impl Serialize for CustomJwtAuthenticateRequestBody
impl Serialize for CustomJwtAuthenticateRequestBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CustomJwtAuthenticateRequestBody
impl RefUnwindSafe for CustomJwtAuthenticateRequestBody
impl Send for CustomJwtAuthenticateRequestBody
impl Sync for CustomJwtAuthenticateRequestBody
impl Unpin 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