pub struct LSPS2BuyResponse {
pub jit_channel_scid: LSPS2InterceptScid,
pub lsp_cltv_expiry_delta: u32,
pub client_trusts_lsp: bool,
}Expand description
A response to a LSPS2BuyRequest.
Includes information needed to construct an invoice.
Fields§
§jit_channel_scid: LSPS2InterceptScidThe intercept short channel id used by LSP to identify need to open channel.
lsp_cltv_expiry_delta: u32The locktime expiry delta the lsp requires.
client_trusts_lsp: boolTrust model flag (default: false).
false => “LSP trusts client”: LSP immediately (or as soon as safe) broadcasts the funding transaction; client may wait for broadcast / confirmations before revealing the preimage. true => “Client trusts LSP”: LSP may defer broadcasting until after the client reveals the preimage; client MUST send the preimage once HTLC(s) are irrevocably committed.
Trait Implementations§
Source§impl Clone for LSPS2BuyResponse
impl Clone for LSPS2BuyResponse
Source§fn clone(&self) -> LSPS2BuyResponse
fn clone(&self) -> LSPS2BuyResponse
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 moreSource§impl Debug for LSPS2BuyResponse
impl Debug for LSPS2BuyResponse
Source§impl<'de> Deserialize<'de> for LSPS2BuyResponse
impl<'de> Deserialize<'de> for LSPS2BuyResponse
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
Source§impl PartialEq for LSPS2BuyResponse
impl PartialEq for LSPS2BuyResponse
Source§impl Serialize for LSPS2BuyResponse
impl Serialize for LSPS2BuyResponse
impl Eq for LSPS2BuyResponse
impl StructuralPartialEq for LSPS2BuyResponse
Auto Trait Implementations§
impl Freeze for LSPS2BuyResponse
impl RefUnwindSafe for LSPS2BuyResponse
impl Send for LSPS2BuyResponse
impl Sync for LSPS2BuyResponse
impl Unpin for LSPS2BuyResponse
impl UnwindSafe for LSPS2BuyResponse
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