pub struct PaymentQuoteResponse {
pub request_lookup_id: Option<PaymentIdentifier>,
pub amount: Amount<CurrencyUnit>,
pub fee: Amount<CurrencyUnit>,
pub state: MeltQuoteState,
}Expand description
Payment quote response
Fields§
§request_lookup_id: Option<PaymentIdentifier>Request look up id
amount: Amount<CurrencyUnit>Amount (typed with unit for compile-time safety)
fee: Amount<CurrencyUnit>Fee required for melt (typed with unit for compile-time safety)
state: MeltQuoteStateStatus
Implementations§
Source§impl PaymentQuoteResponse
impl PaymentQuoteResponse
Sourcepub fn unit(&self) -> &CurrencyUnit
pub fn unit(&self) -> &CurrencyUnit
Get the currency unit
Trait Implementations§
Source§impl Clone for PaymentQuoteResponse
impl Clone for PaymentQuoteResponse
Source§fn clone(&self) -> PaymentQuoteResponse
fn clone(&self) -> PaymentQuoteResponse
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 PaymentQuoteResponse
impl Debug for PaymentQuoteResponse
Source§impl Hash for PaymentQuoteResponse
impl Hash for PaymentQuoteResponse
Source§impl PartialEq for PaymentQuoteResponse
impl PartialEq for PaymentQuoteResponse
impl Eq for PaymentQuoteResponse
impl StructuralPartialEq for PaymentQuoteResponse
Auto Trait Implementations§
impl Freeze for PaymentQuoteResponse
impl RefUnwindSafe for PaymentQuoteResponse
impl Send for PaymentQuoteResponse
impl Sync for PaymentQuoteResponse
impl Unpin for PaymentQuoteResponse
impl UnsafeUnpin for PaymentQuoteResponse
impl UnwindSafe for PaymentQuoteResponse
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