pub struct LightningReceive {
pub payment_hash: PaymentHash,
pub payment_preimage: Preimage,
pub invoice: Bolt11Invoice,
pub preimage_revealed_at: Option<u64>,
pub htlc_vtxos: Option<Vec<WalletVtxo>>,
pub htlc_recv_cltv_delta: BlockDelta,
}Expand description
Persisted representation of an incoming Lightning payment.
Stores the invoice and related cryptographic material (e.g., payment hash and preimage) and tracks whether the preimage has been revealed.
Note: the record should be removed when the receive is completed or failed.
Fields§
§payment_hash: PaymentHash§payment_preimage: Preimage§invoice: Bolt11Invoice§preimage_revealed_at: Option<u64>§htlc_vtxos: Option<Vec<WalletVtxo>>§htlc_recv_cltv_delta: BlockDeltaTrait Implementations§
Source§impl Clone for LightningReceive
impl Clone for LightningReceive
Source§fn clone(&self) -> LightningReceive
fn clone(&self) -> LightningReceive
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 LightningReceive
impl RefUnwindSafe for LightningReceive
impl Send for LightningReceive
impl Sync for LightningReceive
impl Unpin for LightningReceive
impl UnwindSafe for LightningReceive
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request