pub struct AuthenticatedPrincipal {
pub subject: String,
pub display_name: String,
pub picture: Option<String>,
pub issuer: Option<String>,
pub claims: HashMap<String, Value>,
}Fields§
§subject: String§display_name: String§picture: Option<String>§issuer: Option<String>§claims: HashMap<String, Value>Implementations§
Source§impl AuthenticatedPrincipal
impl AuthenticatedPrincipal
Sourcepub fn builder() -> AuthenticatedPrincipalBuilder<((), (), (), (), ())>
pub fn builder() -> AuthenticatedPrincipalBuilder<((), (), (), (), ())>
Create a builder for building AuthenticatedPrincipal.
On the builder, call .subject(...), .display_name(...), .picture(...)(optional), .issuer(...)(optional), .claims(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of AuthenticatedPrincipal.
Trait Implementations§
Source§impl Clone for AuthenticatedPrincipal
impl Clone for AuthenticatedPrincipal
Source§fn clone(&self) -> AuthenticatedPrincipal
fn clone(&self) -> AuthenticatedPrincipal
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 AuthenticatedPrincipal
impl Debug for AuthenticatedPrincipal
Source§impl<'de> Deserialize<'de> for AuthenticatedPrincipal
impl<'de> Deserialize<'de> for AuthenticatedPrincipal
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 AuthenticatedPrincipal
impl PartialEq for AuthenticatedPrincipal
Source§impl Serialize for AuthenticatedPrincipal
impl Serialize for AuthenticatedPrincipal
impl Eq for AuthenticatedPrincipal
impl StructuralPartialEq for AuthenticatedPrincipal
Auto Trait Implementations§
impl Freeze for AuthenticatedPrincipal
impl RefUnwindSafe for AuthenticatedPrincipal
impl Send for AuthenticatedPrincipal
impl Sync for AuthenticatedPrincipal
impl Unpin for AuthenticatedPrincipal
impl UnsafeUnpin for AuthenticatedPrincipal
impl UnwindSafe for AuthenticatedPrincipal
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