pub struct LightningReceiveInfo {
pub payment_hash: PaymentHash,
pub state: String,
pub invoice: String,
pub payment_preimage: Option<Preimage>,
pub amount: Amount,
pub htlc_vtxo_ids: Vec<VtxoId>,
pub settled_at: Option<DateTime<Local>>,
pub preimage_revealed_at: Option<DateTime<Local>>,
pub finished_at: Option<DateTime<Local>>,
pub htlc_vtxos: Vec<WalletVtxoInfo>,
}Fields§
§payment_hash: PaymentHashThe payment hash linked to the lightning receive
state: StringLifecycle phase of the receive: awaiting-payment, htlcs-ready,
preimage-revealed, delivering, or settled.
invoice: StringThe invoice string, if known.
payment_preimage: Option<Preimage>The payment preimage, if known.
amount: AmountThe amount of the lightning receive, if known.
htlc_vtxo_ids: Vec<VtxoId>IDs of the HTLC-recv VTXOs granted by the server, if any.
Empty until the inbound HTLC has been received and prepared.
settled_at: Option<DateTime<Local>>The timestamp at which the receive settled, if it has.
preimage_revealed_at: Option<DateTime<Local>>no longer tracked; use state and settled_at
The timestamp at which the preimage was revealed.
finished_at: Option<DateTime<Local>>renamed to settled_at
The timestamp at which the lightning receive was finished.
htlc_vtxos: Vec<WalletVtxoInfo>replaced by htlc_vtxo_ids
The HTLC VTXOs granted by the server for the lightning receive.
Implementations§
Source§impl LightningReceiveInfo
impl LightningReceiveInfo
Sourcepub fn from_state(state: &LightningReceiveState) -> Self
pub fn from_state(state: &LightningReceiveState) -> Self
Render a triaged receive state, mirroring the send-side status.
Trait Implementations§
Source§impl Clone for LightningReceiveInfo
impl Clone for LightningReceiveInfo
Source§fn clone(&self) -> LightningReceiveInfo
fn clone(&self) -> LightningReceiveInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LightningReceiveInfo
impl Debug for LightningReceiveInfo
Source§impl<'de> Deserialize<'de> for LightningReceiveInfo
impl<'de> Deserialize<'de> for LightningReceiveInfo
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>,
impl Eq for LightningReceiveInfo
Source§impl From<&LightningReceive> for LightningReceiveInfo
impl From<&LightningReceive> for LightningReceiveInfo
Source§fn from(recv: &LightningReceive) -> Self
fn from(recv: &LightningReceive) -> Self
Source§impl PartialEq for LightningReceiveInfo
impl PartialEq for LightningReceiveInfo
Source§impl Serialize for LightningReceiveInfo
impl Serialize for LightningReceiveInfo
impl StructuralPartialEq for LightningReceiveInfo
Auto Trait Implementations§
impl Freeze for LightningReceiveInfo
impl RefUnwindSafe for LightningReceiveInfo
impl Send for LightningReceiveInfo
impl Sync for LightningReceiveInfo
impl Unpin for LightningReceiveInfo
impl UnsafeUnpin for LightningReceiveInfo
impl UnwindSafe for LightningReceiveInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
T in a tonic::Request