Struct lightning_signer::node::PaymentState
source · pub struct PaymentState {
pub invoice_hash: [u8; 32],
pub amount_msat: u64,
pub payee: PublicKey,
pub duration_since_epoch: Duration,
pub expiry_duration: Duration,
pub is_fulfilled: bool,
pub payment_type: PaymentType,
}
Expand description
Payment details and payment state
Fields§
§invoice_hash: [u8; 32]
The hash of the invoice, as a unique ID
amount_msat: u64
Invoiced amount
payee: PublicKey
Payee’s public key, if known
duration_since_epoch: Duration
Timestamp of the payment, as duration since the UNIX epoch
expiry_duration: Duration
Expiry, as duration since the timestamp
is_fulfilled: bool
Whether the invoice was fulfilled note: for issued invoices only
payment_type: PaymentType
Payment type
Trait Implementations§
source§impl Clone for PaymentState
impl Clone for PaymentState
source§fn clone(&self) -> PaymentState
fn clone(&self) -> PaymentState
Returns a copy 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 PaymentState
impl Debug for PaymentState
source§impl<'de> Deserialize<'de> for PaymentState
impl<'de> Deserialize<'de> for PaymentState
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