pub struct OpenChannelRequest {
pub user_channel_id: LxUserChannelId,
pub value: Amount,
}Expand description
The information required for the user node to open a channel to the LSP.
Fields§
§user_channel_id: LxUserChannelIdA user-provided id for this channel that’s associated with the channel throughout its whole lifetime, as the Lightning protocol channel id is only known after negotiating the channel and creating the funding tx.
This id is also used for idempotency. Retrying a request with the same
user_channel_id won’t accidentally open another channel.
value: AmountThe value of the channel we want to open.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpenChannelRequest
impl<'de> Deserialize<'de> for OpenChannelRequest
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpenChannelRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpenChannelRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OpenChannelRequest
impl Serialize for OpenChannelRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OpenChannelRequest
impl RefUnwindSafe for OpenChannelRequest
impl Send for OpenChannelRequest
impl Sync for OpenChannelRequest
impl Unpin for OpenChannelRequest
impl UnsafeUnpin for OpenChannelRequest
impl UnwindSafe for OpenChannelRequest
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