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
Auto Trait Implementations§
impl Freeze for PaymentState
impl RefUnwindSafe for PaymentState
impl Send for PaymentState
impl Sync for PaymentState
impl Unpin for PaymentState
impl UnwindSafe for PaymentState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more