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<Value>,
}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<Value>Optional extra data for the payment.
Implementations§
Trait Implementations§
Source§impl<A: ExplicitEvmAsset> From<ExactEvm<A>> for Payment<ExactEvmScheme, EvmAddress>
impl<A: ExplicitEvmAsset> From<ExactEvm<A>> for Payment<ExactEvmScheme, EvmAddress>
Source§impl<A: ExplicitSvmAsset> From<ExactSvm<A>> for Payment<ExactSvmScheme, SvmAddress>
impl<A: ExplicitSvmAsset> From<ExactSvm<A>> for Payment<ExactSvmScheme, SvmAddress>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more