pub struct AuthenticatedPrincipal { /* private fields */ }Implementations§
Source§impl AuthenticatedPrincipal
impl AuthenticatedPrincipal
pub fn new( id: PrincipalId, kind: PrincipalKind, method: AuthenticationMethod, ) -> Result<Self, DomainError>
pub fn id(&self) -> &PrincipalId
pub const fn kind(&self) -> PrincipalKind
pub const fn method(&self) -> AuthenticationMethod
pub fn validate(&self) -> Result<(), DomainError>
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 (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 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
impl Eq for AuthenticatedPrincipal
Source§impl PartialEq for AuthenticatedPrincipal
impl PartialEq for AuthenticatedPrincipal
Source§impl Serialize for AuthenticatedPrincipal
impl Serialize 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