pub struct MerchantAllowlistGuardrail { /* private fields */ }Available on crate feature
payments only.Expand description
Restricts payment execution to an explicit merchant allowlist.
Implementations§
Source§impl MerchantAllowlistGuardrail
impl MerchantAllowlistGuardrail
Sourcepub fn new<I, S>(allowed_merchant_ids: I) -> MerchantAllowlistGuardrail
pub fn new<I, S>(allowed_merchant_ids: I) -> MerchantAllowlistGuardrail
Creates a merchant allowlist guardrail.
Trait Implementations§
Source§impl PaymentPolicyGuardrail for MerchantAllowlistGuardrail
impl PaymentPolicyGuardrail for MerchantAllowlistGuardrail
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 MerchantAllowlistGuardrail
impl RefUnwindSafe for MerchantAllowlistGuardrail
impl Send for MerchantAllowlistGuardrail
impl Sync for MerchantAllowlistGuardrail
impl Unpin for MerchantAllowlistGuardrail
impl UnsafeUnpin for MerchantAllowlistGuardrail
impl UnwindSafe for MerchantAllowlistGuardrail
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