pub struct AmountThresholdGuardrail { /* private fields */ }Available on crate feature
payments only.Expand description
Enforces soft-review and hard-stop thresholds for transaction totals.
Implementations§
Trait Implementations§
Source§impl PaymentPolicyGuardrail for AmountThresholdGuardrail
impl PaymentPolicyGuardrail for AmountThresholdGuardrail
Source§fn evaluate(
&self,
record: &TransactionRecord,
_protocol: &ProtocolDescriptor,
) -> PaymentPolicyDecision
fn evaluate( &self, record: &TransactionRecord, _protocol: &ProtocolDescriptor, ) -> PaymentPolicyDecision
Evaluates one canonical transaction under a specific protocol surface.
Auto Trait Implementations§
impl Freeze for AmountThresholdGuardrail
impl RefUnwindSafe for AmountThresholdGuardrail
impl Send for AmountThresholdGuardrail
impl Sync for AmountThresholdGuardrail
impl Unpin for AmountThresholdGuardrail
impl UnsafeUnpin for AmountThresholdGuardrail
impl UnwindSafe for AmountThresholdGuardrail
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