pub struct PaymentSelection<A: Address> {
pub max_amount_required: AmountValue,
pub resource: Url,
pub description: String,
pub mime_type: String,
pub pay_to: A,
pub max_timeout_seconds: u64,
pub asset: A,
pub output_schema: Option<OutputSchema>,
pub extra: Option<AnyJson>,
}Expand description
Selected payment requirements for a given scheme and address type.
Fields§
§max_amount_required: AmountValueMaximum amount required for the payment in smallest units
resource: UrlResource URL to fetch payment details
description: StringDescription of the resource
mime_type: StringMIME type of the payment payload
pay_to: ADestination address or account to pay to
max_timeout_seconds: u64Maximum timeout in seconds for the payment to be completed
asset: AAsset address or identifier
output_schema: Option<OutputSchema>Schema of the input / output payload
extra: Option<AnyJson>Extra fields for extensibility
Trait Implementations§
Source§impl<A: Clone + Address> Clone for PaymentSelection<A>
impl<A: Clone + Address> Clone for PaymentSelection<A>
Source§fn clone(&self) -> PaymentSelection<A>
fn clone(&self) -> PaymentSelection<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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