pub struct OrderParameters {
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 LSPS1 channel order.
Fields§
§lsp_balance_sat: u64
Indicates how many satoshi the LSP will provide on their side.
client_balance_sat: u64
Indicates 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: u16
The number of confirmations the funding tx must have before the LSP sends channel_ready
.
funding_confirms_within_blocks: u16
The maximum number of blocks the client wants to wait until the funding transaction is confirmed.
channel_expiry_blocks: u32
Indicates 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: bool
Indicates if the channel should be announced to the network.
Trait Implementations§
Source§impl Clone for OrderParameters
impl Clone for OrderParameters
Source§fn clone(&self) -> OrderParameters
fn clone(&self) -> OrderParameters
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 OrderParameters
impl Debug for OrderParameters
Source§impl<'de> Deserialize<'de> for OrderParameters
impl<'de> Deserialize<'de> for OrderParameters
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 OrderParameters
impl PartialEq for OrderParameters
Source§impl Serialize for OrderParameters
impl Serialize for OrderParameters
impl Eq for OrderParameters
impl StructuralPartialEq for OrderParameters
Auto Trait Implementations§
impl Freeze for OrderParameters
impl RefUnwindSafe for OrderParameters
impl Send for OrderParameters
impl Sync for OrderParameters
impl Unpin for OrderParameters
impl UnwindSafe for OrderParameters
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