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: StringInvoice Quote ID
description: Option<String>Invoice description
ln_invoice: StringBolt11 invoice
onchain_address: Option<String>Onchain Address
expiration: StringExpiration of quote
expiration_in_sec: u64Experition in secs
source_amount: AmountSource Amount
target_amount: AmountTarget Amount
conversion_rate: ConversionRateConversion 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