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
payment_proof: Option<String>Payment proof
status: MeltQuoteStateStatus
total_spent: Amount<CurrencyUnit>Total Amount Spent (typed with unit for compile-time safety)
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 · 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
Source§impl Hash for MakePaymentResponse
impl Hash for MakePaymentResponse
Source§impl PartialEq for MakePaymentResponse
impl PartialEq for MakePaymentResponse
impl Eq for MakePaymentResponse
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