pub struct MeltQuote {Show 13 fields
pub id: Uuid,
pub unit: CurrencyUnit,
pub amount: Amount,
pub request: MeltPaymentRequest,
pub fee_reserve: Amount,
pub state: MeltQuoteState,
pub expiry: u64,
pub payment_preimage: Option<String>,
pub request_lookup_id: Option<PaymentIdentifier>,
pub options: Option<MeltOptions>,
pub created_time: u64,
pub paid_time: Option<u64>,
pub payment_method: PaymentMethod,
}
Expand description
Melt Quote Info
Fields§
§id: Uuid
Quote id
unit: CurrencyUnit
Quote unit
amount: Amount
Quote amount
request: MeltPaymentRequest
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: Option<PaymentIdentifier>
Value used by ln backend to look up state of request
options: Option<MeltOptions>
Payment options
Used for amountless invoices and MPP payments
created_time: u64
Unix time quote was created
paid_time: Option<u64>
Unix time quote was paid
payment_method: PaymentMethod
Payment method
Implementations§
Source§impl MeltQuote
impl MeltQuote
Sourcepub fn new(
request: MeltPaymentRequest,
unit: CurrencyUnit,
amount: Amount,
fee_reserve: Amount,
expiry: u64,
request_lookup_id: Option<PaymentIdentifier>,
options: Option<MeltOptions>,
payment_method: PaymentMethod,
) -> Self
pub fn new( request: MeltPaymentRequest, unit: CurrencyUnit, amount: Amount, fee_reserve: Amount, expiry: u64, request_lookup_id: Option<PaymentIdentifier>, options: Option<MeltOptions>, payment_method: PaymentMethod, ) -> Self
Create new MeltQuote
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
Source§impl TryFrom<MeltQuote> for OutgoingPaymentOptions
impl TryFrom<MeltQuote> for OutgoingPaymentOptions
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