pub enum AuthorizationProof {
User {
user_id: [u8; 8],
message_id: String,
},
Capability {
token_id: TokenId,
token_hash: ContentHash,
},
UserApproval {
user_id: [u8; 8],
approval_entry_id: Option<AuditEntryId>,
},
NotRequired {
reason: String,
},
System {
reason: String,
},
Denied {
reason: String,
},
}Expand description
How an action was authorized.
Variants§
User
Authorized by a verified user message.
Capability
Authorized by capability token.
UserApproval
Authorized by user approval.
Fields
§
approval_entry_id: Option<AuditEntryId>Audit entry ID of the prior approval decision that authorized this
action. None when this entry IS the root approval decision
(i.e. the user just said “yes” — there is no earlier entry).
NotRequired
No authorization required (low-risk operation).
System
System-initiated action.
Denied
Authorization was denied.
Trait Implementations§
Source§impl Clone for AuthorizationProof
impl Clone for AuthorizationProof
Source§fn clone(&self) -> AuthorizationProof
fn clone(&self) -> AuthorizationProof
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 AuthorizationProof
impl Debug for AuthorizationProof
Source§impl<'de> Deserialize<'de> for AuthorizationProof
impl<'de> Deserialize<'de> for AuthorizationProof
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
Auto Trait Implementations§
impl Freeze for AuthorizationProof
impl RefUnwindSafe for AuthorizationProof
impl Send for AuthorizationProof
impl Sync for AuthorizationProof
impl Unpin for AuthorizationProof
impl UnsafeUnpin for AuthorizationProof
impl UnwindSafe for AuthorizationProof
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