pub struct PaymentFlowConfig {
pub supported: Vec<PaymentFlowName>,
pub default: PaymentFlowName,
}Expand description
Supported payment flows for one assetTransferMethod.
default must be a member of supported (checked by resolve_payment_flow).
Fields§
§supported: Vec<PaymentFlowName>Flows this ATM accepts.
default: PaymentFlowNameUsed when extra.paymentFlow is omitted.
Implementations§
Source§impl PaymentFlowConfig
impl PaymentFlowConfig
Sourcepub const fn new(
supported: Vec<PaymentFlowName>,
default: PaymentFlowName,
) -> Self
pub const fn new( supported: Vec<PaymentFlowName>, default: PaymentFlowName, ) -> Self
Constructs a per-ATM flow table.
Exact-scheme row: authorization + upfront, default authorization.
Upto / batch-settlement row: authorization only.
Trait Implementations§
Source§impl Clone for PaymentFlowConfig
impl Clone for PaymentFlowConfig
Source§fn clone(&self) -> PaymentFlowConfig
fn clone(&self) -> PaymentFlowConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaymentFlowConfig
impl Debug for PaymentFlowConfig
impl Eq for PaymentFlowConfig
Source§impl PartialEq for PaymentFlowConfig
impl PartialEq for PaymentFlowConfig
impl StructuralPartialEq for PaymentFlowConfig
Auto Trait Implementations§
impl Freeze for PaymentFlowConfig
impl RefUnwindSafe for PaymentFlowConfig
impl Send for PaymentFlowConfig
impl Sync for PaymentFlowConfig
impl Unpin for PaymentFlowConfig
impl UnsafeUnpin for PaymentFlowConfig
impl UnwindSafe for PaymentFlowConfig
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.