pub enum MaxAmountPerPayment {
Usd(MoneyAmount),
Disabled,
}Expand description
Per-payment USD cap on assets find_default_asset recognizes.
Variants§
Usd(MoneyAmount)
Cap in USD (MoneyAmount of 1 is the default $1).
Disabled
No USD cap (maxAmountPerPayment: false).
Trait Implementations§
Source§impl Clone for MaxAmountPerPayment
impl Clone for MaxAmountPerPayment
Source§fn clone(&self) -> MaxAmountPerPayment
fn clone(&self) -> MaxAmountPerPayment
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 moreimpl Copy for MaxAmountPerPayment
Source§impl Debug for MaxAmountPerPayment
impl Debug for MaxAmountPerPayment
Source§impl Default for MaxAmountPerPayment
impl Default for MaxAmountPerPayment
impl Eq for MaxAmountPerPayment
Source§impl PartialEq for MaxAmountPerPayment
impl PartialEq for MaxAmountPerPayment
impl StructuralPartialEq for MaxAmountPerPayment
Auto Trait Implementations§
impl Freeze for MaxAmountPerPayment
impl RefUnwindSafe for MaxAmountPerPayment
impl Send for MaxAmountPerPayment
impl Sync for MaxAmountPerPayment
impl Unpin for MaxAmountPerPayment
impl UnsafeUnpin for MaxAmountPerPayment
impl UnwindSafe for MaxAmountPerPayment
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