pub struct DeveloperJwtAuthentication {
pub kid: String,
pub sub: String,
pub type_: DeveloperJwtAuthenticationType,
}
Expand description
Information about an end user who authenticates using a JWT issued by the developer.
JSON schema
{
"title": "DeveloperJWTAuthentication",
"description": "Information about an end user who authenticates using a JWT issued by the developer.",
"type": "object",
"required": [
"kid",
"sub",
"type"
],
"properties": {
"kid": {
"description": "The key ID of the JWK used to sign the JWT.",
"examples": [
"NjVBRjY5MDlCMUIwNzU4RTA2QzZFMDQ4QzQ2MDAyQjVDNjk1RTM2Qg"
],
"type": "string"
},
"sub": {
"description": "The unique identifier for the end user that is captured in the `sub` claim of the JWT.",
"examples": [
"e051beeb-7163-4527-a5b6-35e301529ff2"
],
"type": "string"
},
"type": {
"description": "The type of authentication information.",
"examples": [
"jwt"
],
"type": "string",
"enum": [
"jwt"
]
}
}
}
Fields§
§kid: String
The key ID of the JWK used to sign the JWT.
sub: String
The unique identifier for the end user that is captured in the sub
claim of the JWT.
type_: DeveloperJwtAuthenticationType
The type of authentication information.
Implementations§
Source§impl DeveloperJwtAuthentication
impl DeveloperJwtAuthentication
pub fn builder() -> DeveloperJwtAuthentication
Trait Implementations§
Source§impl Clone for DeveloperJwtAuthentication
impl Clone for DeveloperJwtAuthentication
Source§fn clone(&self) -> DeveloperJwtAuthentication
fn clone(&self) -> DeveloperJwtAuthentication
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 DeveloperJwtAuthentication
impl Debug for DeveloperJwtAuthentication
Source§impl<'de> Deserialize<'de> for DeveloperJwtAuthentication
impl<'de> Deserialize<'de> for DeveloperJwtAuthentication
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<&DeveloperJwtAuthentication> for DeveloperJwtAuthentication
impl From<&DeveloperJwtAuthentication> for DeveloperJwtAuthentication
Source§fn from(value: &DeveloperJwtAuthentication) -> Self
fn from(value: &DeveloperJwtAuthentication) -> Self
Converts to this type from the input type.
Source§impl From<DeveloperJwtAuthentication> for AuthenticationMethod
impl From<DeveloperJwtAuthentication> for AuthenticationMethod
Source§fn from(value: DeveloperJwtAuthentication) -> Self
fn from(value: DeveloperJwtAuthentication) -> Self
Converts to this type from the input type.
Source§impl From<DeveloperJwtAuthentication> for DeveloperJwtAuthentication
impl From<DeveloperJwtAuthentication> for DeveloperJwtAuthentication
Source§fn from(value: DeveloperJwtAuthentication) -> Self
fn from(value: DeveloperJwtAuthentication) -> Self
Converts to this type from the input type.
Source§impl TryFrom<DeveloperJwtAuthentication> for DeveloperJwtAuthentication
impl TryFrom<DeveloperJwtAuthentication> for DeveloperJwtAuthentication
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: DeveloperJwtAuthentication) -> Result<Self, ConversionError>
fn try_from(value: DeveloperJwtAuthentication) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DeveloperJwtAuthentication
impl RefUnwindSafe for DeveloperJwtAuthentication
impl Send for DeveloperJwtAuthentication
impl Sync for DeveloperJwtAuthentication
impl Unpin for DeveloperJwtAuthentication
impl UnwindSafe for DeveloperJwtAuthentication
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