pub enum PolicyCheckResult {
Allowed,
Denied {
rule: String,
reason: String,
},
}Expand description
Detailed result of a policy check operation.
This enum provides specific information about why a transaction was allowed or denied, enabling detailed error messages and audit logging.
Variants§
Implementations§
Source§impl PolicyCheckResult
impl PolicyCheckResult
Sourcepub const fn is_allowed(&self) -> bool
pub const fn is_allowed(&self) -> bool
Returns true if the policy allows the transaction.
Trait Implementations§
Source§impl Clone for PolicyCheckResult
impl Clone for PolicyCheckResult
Source§fn clone(&self) -> PolicyCheckResult
fn clone(&self) -> PolicyCheckResult
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 PolicyCheckResult
impl Debug for PolicyCheckResult
Source§impl From<PolicyResult> for PolicyCheckResult
impl From<PolicyResult> for PolicyCheckResult
Source§fn from(result: PolicyResult) -> Self
fn from(result: PolicyResult) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PolicyCheckResult
impl PartialEq for PolicyCheckResult
impl Eq for PolicyCheckResult
impl StructuralPartialEq for PolicyCheckResult
Auto Trait Implementations§
impl Freeze for PolicyCheckResult
impl RefUnwindSafe for PolicyCheckResult
impl Send for PolicyCheckResult
impl Sync for PolicyCheckResult
impl Unpin for PolicyCheckResult
impl UnwindSafe for PolicyCheckResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.