pub struct OpenChannelRequest {
pub value: Amount,
pub user_channel_id: Option<UserChannelId>,
}Expand description
A request to open a Lightning channel from this node to Lexe’s LSP.
Fields§
§value: AmountThe value of the channel to open.
user_channel_id: Option<UserChannelId>A 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.
If None, a random id is generated, which provides no idempotency
across separate open_channel calls.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OpenChannelRequest
impl<'de> Deserialize<'de> for OpenChannelRequest
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
Auto Trait Implementations§
impl Freeze for OpenChannelRequest
impl RefUnwindSafe for OpenChannelRequest
impl Send for OpenChannelRequest
impl Sync for OpenChannelRequest
impl Unpin for OpenChannelRequest
impl UnwindSafe for OpenChannelRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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