[−][src]Struct openidconnect::StandardClaims
Standard Claims defined by OpenID Connect Core.
Methods
impl<GC> StandardClaims<GC> where
GC: GenderClaim,
[src]
GC: GenderClaim,
pub fn new(subject: SubjectIdentifier) -> Self
[src]
Initializes a set of Standard Claims.
The Subject (sub
) claim is the only required Standard Claim.
pub fn subject(&self) -> &SubjectIdentifier
[src]
Returns the Subject (sub
) claim.
pub fn set_subject(self, subject: SubjectIdentifier) -> Self
[src]
Sets the Subject (sub
) claim.
pub fn name(&self) -> Option<&LocalizedClaim<EndUserName>>
[src]
Returns the name
claim.
pub fn set_name(self, name: Option<LocalizedClaim<EndUserName>>) -> Self
[src]
Sets the name
claim.
pub fn given_name(&self) -> Option<&LocalizedClaim<EndUserGivenName>>
[src]
Returns the given_name
claim.
pub fn set_given_name(
self,
given_name: Option<LocalizedClaim<EndUserGivenName>>
) -> Self
[src]
self,
given_name: Option<LocalizedClaim<EndUserGivenName>>
) -> Self
Sets the given_name
claim.
pub fn family_name(&self) -> Option<&LocalizedClaim<EndUserFamilyName>>
[src]
Returns the family_name
claim.
pub fn set_family_name(
self,
family_name: Option<LocalizedClaim<EndUserFamilyName>>
) -> Self
[src]
self,
family_name: Option<LocalizedClaim<EndUserFamilyName>>
) -> Self
Sets the family_name
claim.
pub fn middle_name(&self) -> Option<&LocalizedClaim<EndUserMiddleName>>
[src]
Returns the middle_name
claim.
pub fn set_middle_name(
self,
middle_name: Option<LocalizedClaim<EndUserMiddleName>>
) -> Self
[src]
self,
middle_name: Option<LocalizedClaim<EndUserMiddleName>>
) -> Self
Sets the middle_name
claim.
pub fn nickname(&self) -> Option<&LocalizedClaim<EndUserNickname>>
[src]
Returns the nickname
claim.
pub fn set_nickname(
self,
nickname: Option<LocalizedClaim<EndUserNickname>>
) -> Self
[src]
self,
nickname: Option<LocalizedClaim<EndUserNickname>>
) -> Self
Sets the nickname
claim.
pub fn preferred_username(&self) -> Option<&EndUserUsername>
[src]
Returns the preferred_username
claim.
pub fn set_preferred_username(
self,
preferred_username: Option<EndUserUsername>
) -> Self
[src]
self,
preferred_username: Option<EndUserUsername>
) -> Self
Sets the preferred_username
claim.
pub fn profile(&self) -> Option<&LocalizedClaim<EndUserProfileUrl>>
[src]
Returns the profile
claim.
pub fn set_profile(
self,
profile: Option<LocalizedClaim<EndUserProfileUrl>>
) -> Self
[src]
self,
profile: Option<LocalizedClaim<EndUserProfileUrl>>
) -> Self
Sets the profile
claim.
pub fn picture(&self) -> Option<&LocalizedClaim<EndUserPictureUrl>>
[src]
Returns the picture
claim.
pub fn set_picture(
self,
picture: Option<LocalizedClaim<EndUserPictureUrl>>
) -> Self
[src]
self,
picture: Option<LocalizedClaim<EndUserPictureUrl>>
) -> Self
Sets the picture
claim.
pub fn website(&self) -> Option<&LocalizedClaim<EndUserWebsiteUrl>>
[src]
Returns the website
claim.
pub fn set_website(
self,
website: Option<LocalizedClaim<EndUserWebsiteUrl>>
) -> Self
[src]
self,
website: Option<LocalizedClaim<EndUserWebsiteUrl>>
) -> Self
Sets the website
claim.
pub fn email(&self) -> Option<&EndUserEmail>
[src]
Returns the email
claim.
pub fn set_email(self, email: Option<EndUserEmail>) -> Self
[src]
Sets the email
claim.
pub fn email_verified(&self) -> Option<bool>
[src]
Returns the email_verified
claim.
pub fn set_email_verified(self, email_verified: Option<bool>) -> Self
[src]
Sets the email_verified
claim.
pub fn gender(&self) -> Option<&GC>
[src]
Returns the gender
claim.
pub fn set_gender(self, gender: Option<GC>) -> Self
[src]
Sets the gender
claim.
pub fn birthday(&self) -> Option<&EndUserBirthday>
[src]
Returns the birthday
claim.
pub fn set_birthday(self, birthday: Option<EndUserBirthday>) -> Self
[src]
Sets the birthday
claim.
pub fn zoneinfo(&self) -> Option<&EndUserTimezone>
[src]
Returns the zoneinfo
claim.
pub fn set_zoneinfo(self, zoneinfo: Option<EndUserTimezone>) -> Self
[src]
Sets the zoneinfo
claim.
pub fn locale(&self) -> Option<&LanguageTag>
[src]
Returns the locale
claim.
pub fn set_locale(self, locale: Option<LanguageTag>) -> Self
[src]
Sets the locale
claim.
pub fn phone_number(&self) -> Option<&EndUserPhoneNumber>
[src]
Returns the phone_number
claim.
pub fn set_phone_number(self, phone_number: Option<EndUserPhoneNumber>) -> Self
[src]
Sets the phone_number
claim.
pub fn phone_number_verified(&self) -> Option<bool>
[src]
Returns the phone_number_verified
claim.
pub fn set_phone_number_verified(
self,
phone_number_verified: Option<bool>
) -> Self
[src]
self,
phone_number_verified: Option<bool>
) -> Self
Sets the phone_number_verified
claim.
pub fn address(&self) -> Option<&AddressClaim>
[src]
Returns the address
claim.
pub fn set_address(self, address: Option<AddressClaim>) -> Self
[src]
Sets the address
claim.
pub fn updated_at(&self) -> Option<&DateTime<Utc>>
[src]
Returns the updated_at
claim.
pub fn set_updated_at(self, updated_at: Option<DateTime<Utc>>) -> Self
[src]
Sets the updated_at
claim.
Trait Implementations
impl<GC: Clone> Clone for StandardClaims<GC> where
GC: GenderClaim,
[src]
GC: GenderClaim,
fn clone(&self) -> StandardClaims<GC>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<GC: PartialEq> PartialEq<StandardClaims<GC>> for StandardClaims<GC> where
GC: GenderClaim,
[src]
GC: GenderClaim,
fn eq(&self, other: &StandardClaims<GC>) -> bool
[src]
fn ne(&self, other: &StandardClaims<GC>) -> bool
[src]
impl<GC: Debug> Debug for StandardClaims<GC> where
GC: GenderClaim,
[src]
GC: GenderClaim,
impl<GC> Serialize for StandardClaims<GC> where
GC: GenderClaim,
[src]
GC: GenderClaim,
impl<'de, GC> Deserialize<'de> for StandardClaims<GC> where
GC: GenderClaim,
[src]
GC: GenderClaim,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Special deserializer that supports RFC 5646 language tags associated with human-readable client metadata fields.
Auto Trait Implementations
impl<GC> Send for StandardClaims<GC> where
GC: Send,
GC: Send,
impl<GC> Sync for StandardClaims<GC> where
GC: Sync,
GC: Sync,
impl<GC> Unpin for StandardClaims<GC> where
GC: Unpin,
GC: Unpin,
impl<GC> UnwindSafe for StandardClaims<GC> where
GC: UnwindSafe,
GC: UnwindSafe,
impl<GC> RefUnwindSafe for StandardClaims<GC> where
GC: RefUnwindSafe,
GC: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,