pub struct MakePaymentResponse {
pub payment_lookup_id: PaymentIdentifier,
pub payment_proof: Option<String>,
pub status: MeltQuoteState,
pub total_spent: Amount<CurrencyUnit>,
}Expand description
Payment response
Fields§
§payment_lookup_id: PaymentIdentifierPayment hash
For onchain payments, this MUST be
PaymentIdentifier::QuoteId(quote_id) where quote_id is the value
supplied by the mint in
OnchainOutgoingPaymentOptions::quote_id. See that field for the
full echo contract.
payment_proof: Option<String>Payment proof
status: MeltQuoteStateStatus
total_spent: Amount<CurrencyUnit>Total amount spent, including fees. Only authoritative when status
is MeltQuoteState::Paid; otherwise backends return 0.
Implementations§
Source§impl MakePaymentResponse
impl MakePaymentResponse
Sourcepub fn unit(&self) -> &CurrencyUnit
pub fn unit(&self) -> &CurrencyUnit
Get the currency unit
Trait Implementations§
Source§impl Clone for MakePaymentResponse
impl Clone for MakePaymentResponse
Source§fn clone(&self) -> MakePaymentResponse
fn clone(&self) -> MakePaymentResponse
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 moreSource§impl Debug for MakePaymentResponse
impl Debug for MakePaymentResponse
impl Eq for MakePaymentResponse
Source§impl Hash for MakePaymentResponse
impl Hash for MakePaymentResponse
Source§impl PartialEq for MakePaymentResponse
impl PartialEq for MakePaymentResponse
Source§fn eq(&self, other: &MakePaymentResponse) -> bool
fn eq(&self, other: &MakePaymentResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MakePaymentResponse
Auto Trait Implementations§
impl Freeze for MakePaymentResponse
impl RefUnwindSafe for MakePaymentResponse
impl Send for MakePaymentResponse
impl Sync for MakePaymentResponse
impl Unpin for MakePaymentResponse
impl UnsafeUnpin for MakePaymentResponse
impl UnwindSafe for MakePaymentResponse
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