pub struct MeltQuote {
pub id: Uuid,
pub unit: CurrencyUnit,
pub amount: Amount,
pub request: String,
pub fee_reserve: Amount,
pub state: MeltQuoteState,
pub expiry: u64,
pub payment_preimage: Option<String>,
pub request_lookup_id: String,
pub msat_to_pay: Option<Amount>,
pub created_time: u64,
pub paid_time: Option<u64>,
}
Expand description
Melt Quote Info
Fields§
§id: Uuid
Quote id
unit: CurrencyUnit
Quote unit
amount: Amount
Quote amount
request: String
Quote Payment request e.g. bolt11
fee_reserve: Amount
Quote fee reserve
state: MeltQuoteState
Quote state
expiry: u64
Expiration time of quote
payment_preimage: Option<String>
Payment preimage
request_lookup_id: String
Value used by ln backend to look up state of request
msat_to_pay: Option<Amount>
Msat to pay
Used for an amountless invoice
created_time: u64
Unix time quote was created
paid_time: Option<u64>
Unix time quote was paid
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MeltQuote
impl<'de> Deserialize<'de> for MeltQuote
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
impl Eq for MeltQuote
impl StructuralPartialEq for MeltQuote
Auto Trait Implementations§
impl Freeze for MeltQuote
impl RefUnwindSafe for MeltQuote
impl Send for MeltQuote
impl Sync for MeltQuote
impl Unpin for MeltQuote
impl UnwindSafe for MeltQuote
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