pub struct LSPS1OrderParams {
pub lsp_balance_sat: u64,
pub client_balance_sat: u64,
pub required_channel_confirmations: u16,
pub funding_confirms_within_blocks: u16,
pub channel_expiry_blocks: u32,
pub token: Option<String>,
pub announce_channel: bool,
}Expand description
An object representing an bLIP-51 / LSPS1 channel order.
Fields§
§lsp_balance_sat: u64Indicates how many satoshi the LSP will provide on their side.
client_balance_sat: u64Indicates how many satoshi the client will provide on their side.
The client sends these funds to the LSP, who will push them back to the client upon opening the channel.
required_channel_confirmations: u16The number of confirmations the funding tx must have before the LSP sends channel_ready.
funding_confirms_within_blocks: u16The maximum number of blocks the client wants to wait until the funding transaction is confirmed.
channel_expiry_blocks: u32Indicates how long the channel is leased for in block time.
token: Option<String>May contain arbitrary associated data like a coupon code or a authentication token.
announce_channel: boolIndicates if the channel should be announced to the network.
Trait Implementations§
Source§impl Clone for LSPS1OrderParams
impl Clone for LSPS1OrderParams
Source§fn clone(&self) -> LSPS1OrderParams
fn clone(&self) -> LSPS1OrderParams
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 LSPS1OrderParams
impl Debug for LSPS1OrderParams
Source§impl<'de> Deserialize<'de> for LSPS1OrderParams
impl<'de> Deserialize<'de> for LSPS1OrderParams
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 LSPS1OrderParams
impl PartialEq for LSPS1OrderParams
Source§impl Serialize for LSPS1OrderParams
impl Serialize for LSPS1OrderParams
impl Eq for LSPS1OrderParams
impl StructuralPartialEq for LSPS1OrderParams
Auto Trait Implementations§
impl Freeze for LSPS1OrderParams
impl RefUnwindSafe for LSPS1OrderParams
impl Send for LSPS1OrderParams
impl Sync for LSPS1OrderParams
impl Unpin for LSPS1OrderParams
impl UnwindSafe for LSPS1OrderParams
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