pub struct PaymentSelection<A>where
A: Address,{
pub pay_to: A,
pub asset: A,
pub amount: AmountValue,
pub max_timeout_seconds: u64,
pub extra: Option<Value>,
pub resource: Resource,
pub extensions: HashMap<String, Extension>,
}Expand description
The selected payment for the signer to sign.
Selected payment only knows about the asset’s address, not full asset details.
Fields§
§pay_to: AThe address to use for payments.
asset: AThe 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.
resource: ResourceResource definition.
extensions: HashMap<String, Extension>Extensions
Implementations§
Source§impl<A> PaymentSelection<A>where
A: Address,
impl<A> PaymentSelection<A>where
A: Address,
Sourcepub fn builder() -> PaymentSelectionBuilder<A>
pub fn builder() -> PaymentSelectionBuilder<A>
Create an instance of PaymentSelection using the builder syntax
Auto Trait Implementations§
impl<A> Freeze for PaymentSelection<A>where
A: Freeze,
impl<A> RefUnwindSafe for PaymentSelection<A>where
A: RefUnwindSafe,
impl<A> Send for PaymentSelection<A>where
A: Send,
impl<A> Sync for PaymentSelection<A>where
A: Sync,
impl<A> Unpin for PaymentSelection<A>where
A: Unpin,
impl<A> UnwindSafe for PaymentSelection<A>where
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