pub enum PolicyCheckResult {
Allowed,
DeniedBlacklisted {
address: String,
},
DeniedNotWhitelisted {
address: String,
},
DeniedExceedsTransactionLimit {
token: String,
amount: U256,
limit: U256,
},
}Expand description
Detailed result of a policy check operation.
Provides specific information about why a transaction was allowed or denied, enabling detailed error messages and audit logging.
Variants§
Allowed
Transaction is allowed by all policy rules.
DeniedBlacklisted
Transaction denied - recipient address is blacklisted.
DeniedNotWhitelisted
Transaction denied - recipient address is not in the whitelist.
DeniedExceedsTransactionLimit
Transaction denied - amount exceeds single transaction limit.
Implementations§
Source§impl PolicyCheckResult
impl PolicyCheckResult
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<PolicyCheckResult> for PolicyResult
impl From<PolicyCheckResult> for PolicyResult
Source§fn from(result: PolicyCheckResult) -> Self
fn from(result: PolicyCheckResult) -> 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.