pub struct OAuth2CustomClaim {
pub name: Option<String>,
pub values: Option<Vec<String>>,
}Expand description
OAuth2CustomClaim : OAuth2CustomClaim is a custom claim specific to OAuth2 authentication method.
Fields§
§name: Option<String>§values: Option<Vec<String>>Implementations§
Source§impl OAuth2CustomClaim
impl OAuth2CustomClaim
Sourcepub fn new() -> OAuth2CustomClaim
pub fn new() -> OAuth2CustomClaim
OAuth2CustomClaim is a custom claim specific to OAuth2 authentication method.
Trait Implementations§
Source§impl Clone for OAuth2CustomClaim
impl Clone for OAuth2CustomClaim
Source§fn clone(&self) -> OAuth2CustomClaim
fn clone(&self) -> OAuth2CustomClaim
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OAuth2CustomClaim
impl Debug for OAuth2CustomClaim
Source§impl Default for OAuth2CustomClaim
impl Default for OAuth2CustomClaim
Source§fn default() -> OAuth2CustomClaim
fn default() -> OAuth2CustomClaim
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OAuth2CustomClaim
impl<'de> Deserialize<'de> for OAuth2CustomClaim
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 PartialEq for OAuth2CustomClaim
impl PartialEq for OAuth2CustomClaim
Source§fn eq(&self, other: &OAuth2CustomClaim) -> bool
fn eq(&self, other: &OAuth2CustomClaim) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OAuth2CustomClaim
impl Serialize for OAuth2CustomClaim
impl StructuralPartialEq for OAuth2CustomClaim
Auto Trait Implementations§
impl Freeze for OAuth2CustomClaim
impl RefUnwindSafe for OAuth2CustomClaim
impl Send for OAuth2CustomClaim
impl Sync for OAuth2CustomClaim
impl Unpin for OAuth2CustomClaim
impl UnsafeUnpin for OAuth2CustomClaim
impl UnwindSafe for OAuth2CustomClaim
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