pub struct MintQuote {
pub id: Uuid,
pub amount: Amount,
pub unit: CurrencyUnit,
pub request: String,
pub state: MintQuoteState,
pub expiry: u64,
pub request_lookup_id: String,
pub pubkey: Option<PublicKey>,
pub created_time: u64,
pub paid_time: Option<u64>,
pub issued_time: Option<u64>,
}
Expand description
Mint Quote Info
Fields§
§id: Uuid
Quote id
amount: Amount
Amount of quote
unit: CurrencyUnit
Unit of quote
request: String
Quote payment request e.g. bolt11
state: MintQuoteState
Quote state
expiry: u64
Expiration time of quote
request_lookup_id: String
Value used by ln backend to look up state of request
pubkey: Option<PublicKey>
Pubkey
created_time: u64
Unix time quote was created
paid_time: Option<u64>
Unix time quote was paid
issued_time: Option<u64>
Unix time quote was issued
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MintQuote
impl<'de> Deserialize<'de> for MintQuote
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 MintQuote
impl StructuralPartialEq for MintQuote
Auto Trait Implementations§
impl Freeze for MintQuote
impl RefUnwindSafe for MintQuote
impl Send for MintQuote
impl Sync for MintQuote
impl Unpin for MintQuote
impl UnwindSafe for MintQuote
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