pub struct InvoiceData {
pub network: Network,
pub amount_msat: Option<u64>,
pub timestamp: u64,
pub expiry: u64,
pub payment_hash: Option<PaymentHash>,
pub description: Option<String>,
pub description_hash: Option<[u8; 32]>,
pub payee_pubkey: Option<[u8; 33]>,
pub route_hints: Vec<RouteHint>,
pub min_final_cltv_expiry: u32,
}Expand description
Invoice data extracted from a BOLT11 invoice.
Fields§
§network: NetworkNetwork (mainnet, testnet, regtest)
amount_msat: Option<u64>Amount in millisatoshis
timestamp: u64Creation timestamp (Unix seconds)
expiry: u64Expiry time in seconds
payment_hash: Option<PaymentHash>Payment hash
description: Option<String>Description string
description_hash: Option<[u8; 32]>Description hash (for long descriptions)
payee_pubkey: Option<[u8; 33]>Payee public key
route_hints: Vec<RouteHint>Route hints
min_final_cltv_expiry: u32Minimum final CLTV expiry
Trait Implementations§
Source§impl Clone for InvoiceData
impl Clone for InvoiceData
Source§fn clone(&self) -> InvoiceData
fn clone(&self) -> InvoiceData
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 moreAuto Trait Implementations§
impl Freeze for InvoiceData
impl RefUnwindSafe for InvoiceData
impl Send for InvoiceData
impl Sync for InvoiceData
impl Unpin for InvoiceData
impl UnwindSafe for InvoiceData
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