pub struct AuthorizedOperation { /* private fields */ }Expand description
Full authenticated identity and allow evidence for one admitted operation.
Implementations§
Source§impl AuthorizedOperation
impl AuthorizedOperation
pub fn new( principal: AuthenticatedPrincipal, evidence: AuthorizationEvidence, ) -> Result<Self, DomainError>
pub const fn principal(&self) -> &AuthenticatedPrincipal
pub const fn evidence(&self) -> &AuthorizationEvidence
Trait Implementations§
Source§impl Clone for AuthorizedOperation
impl Clone for AuthorizedOperation
Source§impl Debug for AuthorizedOperation
impl Debug for AuthorizedOperation
impl Eq for AuthorizedOperation
Source§impl PartialEq for AuthorizedOperation
impl PartialEq for AuthorizedOperation
impl StructuralPartialEq for AuthorizedOperation
Auto Trait Implementations§
impl Freeze for AuthorizedOperation
impl RefUnwindSafe for AuthorizedOperation
impl Send for AuthorizedOperation
impl Sync for AuthorizedOperation
impl Unpin for AuthorizedOperation
impl UnsafeUnpin for AuthorizedOperation
impl UnwindSafe for AuthorizedOperation
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