pub struct LSPS1Options {
pub min_required_channel_confirmations: u16,
pub min_funding_confirms_within_blocks: u16,
pub supports_zero_channel_reserve: bool,
pub max_channel_expiry_blocks: u32,
pub min_initial_client_balance_sat: u64,
pub max_initial_client_balance_sat: u64,
pub min_initial_lsp_balance_sat: u64,
pub max_initial_lsp_balance_sat: u64,
pub min_channel_balance_sat: u64,
pub max_channel_balance_sat: u64,
}
Expand description
An object representing the supported protocol options.
Fields§
§min_required_channel_confirmations: u16
The smallest number of confirmations needed for the LSP to accept a channel as confirmed.
min_funding_confirms_within_blocks: u16
The smallest number of blocks in which the LSP can confirm the funding transaction.
supports_zero_channel_reserve: bool
Indicates if the LSP supports zero reserve.
max_channel_expiry_blocks: u32
The maximum number of blocks a channel can be leased for.
min_initial_client_balance_sat: u64
The minimum number of satoshi that the client MUST request.
max_initial_client_balance_sat: u64
The maximum number of satoshi that the client MUST request.
min_initial_lsp_balance_sat: u64
The minimum number of satoshi that the LSP will provide to the channel.
max_initial_lsp_balance_sat: u64
The maximum number of satoshi that the LSP will provide to the channel.
min_channel_balance_sat: u64
The minimal channel size.
max_channel_balance_sat: u64
The maximal channel size.
Trait Implementations§
Source§impl Clone for LSPS1Options
impl Clone for LSPS1Options
Source§fn clone(&self) -> LSPS1Options
fn clone(&self) -> LSPS1Options
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 LSPS1Options
impl Debug for LSPS1Options
Source§impl<'de> Deserialize<'de> for LSPS1Options
impl<'de> Deserialize<'de> for LSPS1Options
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 LSPS1Options
impl PartialEq for LSPS1Options
Source§impl Serialize for LSPS1Options
impl Serialize for LSPS1Options
impl Eq for LSPS1Options
impl StructuralPartialEq for LSPS1Options
Auto Trait Implementations§
impl Freeze for LSPS1Options
impl RefUnwindSafe for LSPS1Options
impl Send for LSPS1Options
impl Sync for LSPS1Options
impl Unpin for LSPS1Options
impl UnwindSafe for LSPS1Options
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