pub struct Payment<S, A>{
pub scheme: S,
pub pay_to: A,
pub asset: Asset<A>,
pub amount: AmountValue,
pub max_timeout_seconds: u64,
pub extra: Option<AnyJson>,
}Expand description
Payment configuration for a given scheme and transport.
The payment configuration uses a static asset implementation. See Asset.
Fields§
§scheme: SThe payment scheme.
pay_to: AThe address to use for payments.
asset: Asset<A>The asset for the payment
amount: AmountValueThe amount of the asset to pay, in smallest units.
max_timeout_seconds: u64Maximum timeout in seconds for the payment to be completed.
extra: Option<AnyJson>Optional extra data for the payment.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S, A> Freeze for Payment<S, A>
impl<S, A> RefUnwindSafe for Payment<S, A>where
S: RefUnwindSafe,
A: RefUnwindSafe,
impl<S, A> Send for Payment<S, A>
impl<S, A> Sync for Payment<S, A>
impl<S, A> Unpin for Payment<S, A>
impl<S, A> UnwindSafe for Payment<S, A>where
S: UnwindSafe,
A: UnwindSafe,
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