pub struct InvoiceQuoteResponse {
pub quote_id: String,
pub description: Option<String>,
pub ln_invoice: String,
pub onchain_address: Option<String>,
pub expiration: String,
pub expiration_in_sec: u64,
pub source_amount: Amount,
pub target_amount: Amount,
pub conversion_rate: ConversionRate,
}
Expand description
Invoice Response
Fields§
§quote_id: String
Invoice Quote ID
description: Option<String>
Invoice description
ln_invoice: String
Bolt11 invoice
onchain_address: Option<String>
Onchain Address
expiration: String
Expiration of quote
expiration_in_sec: u64
Experition in secs
source_amount: Amount
Source Amount
target_amount: Amount
Target Amount
conversion_rate: ConversionRate
Conversion Rate
Trait Implementations§
Source§impl Clone for InvoiceQuoteResponse
impl Clone for InvoiceQuoteResponse
Source§fn clone(&self) -> InvoiceQuoteResponse
fn clone(&self) -> InvoiceQuoteResponse
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 InvoiceQuoteResponse
impl Debug for InvoiceQuoteResponse
Source§impl<'de> Deserialize<'de> for InvoiceQuoteResponse
impl<'de> Deserialize<'de> for InvoiceQuoteResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InvoiceQuoteResponse
impl PartialEq for InvoiceQuoteResponse
Source§impl Serialize for InvoiceQuoteResponse
impl Serialize for InvoiceQuoteResponse
impl StructuralPartialEq for InvoiceQuoteResponse
Auto Trait Implementations§
impl Freeze for InvoiceQuoteResponse
impl RefUnwindSafe for InvoiceQuoteResponse
impl Send for InvoiceQuoteResponse
impl Sync for InvoiceQuoteResponse
impl Unpin for InvoiceQuoteResponse
impl UnwindSafe for InvoiceQuoteResponse
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