Struct gl_client::pb::cln::ListpeerchannelsChannels
source · pub struct ListpeerchannelsChannels {Show 54 fields
pub peer_id: Option<Vec<u8>>,
pub peer_connected: Option<bool>,
pub state: Option<i32>,
pub scratch_txid: Option<Vec<u8>>,
pub updates: Option<ListpeerchannelsChannelsUpdates>,
pub ignore_fee_limits: Option<bool>,
pub lost_state: Option<bool>,
pub feerate: Option<ListpeerchannelsChannelsFeerate>,
pub owner: Option<String>,
pub short_channel_id: Option<String>,
pub channel_id: Option<Vec<u8>>,
pub funding_txid: Option<Vec<u8>>,
pub funding_outnum: Option<u32>,
pub initial_feerate: Option<String>,
pub last_feerate: Option<String>,
pub next_feerate: Option<String>,
pub next_fee_step: Option<u32>,
pub inflight: Vec<ListpeerchannelsChannelsInflight>,
pub close_to: Option<Vec<u8>>,
pub private: Option<bool>,
pub opener: Option<i32>,
pub closer: Option<i32>,
pub funding: Option<ListpeerchannelsChannelsFunding>,
pub to_us_msat: Option<Amount>,
pub min_to_us_msat: Option<Amount>,
pub max_to_us_msat: Option<Amount>,
pub total_msat: Option<Amount>,
pub fee_base_msat: Option<Amount>,
pub fee_proportional_millionths: Option<u32>,
pub dust_limit_msat: Option<Amount>,
pub max_total_htlc_in_msat: Option<Amount>,
pub their_reserve_msat: Option<Amount>,
pub our_reserve_msat: Option<Amount>,
pub spendable_msat: Option<Amount>,
pub receivable_msat: Option<Amount>,
pub minimum_htlc_in_msat: Option<Amount>,
pub minimum_htlc_out_msat: Option<Amount>,
pub maximum_htlc_out_msat: Option<Amount>,
pub their_to_self_delay: Option<u32>,
pub our_to_self_delay: Option<u32>,
pub max_accepted_htlcs: Option<u32>,
pub alias: Option<ListpeerchannelsChannelsAlias>,
pub status: Vec<String>,
pub in_payments_offered: Option<u64>,
pub in_offered_msat: Option<Amount>,
pub in_payments_fulfilled: Option<u64>,
pub in_fulfilled_msat: Option<Amount>,
pub out_payments_offered: Option<u64>,
pub out_offered_msat: Option<Amount>,
pub out_payments_fulfilled: Option<u64>,
pub out_fulfilled_msat: Option<Amount>,
pub last_stable_connection: Option<u64>,
pub htlcs: Vec<ListpeerchannelsChannelsHtlcs>,
pub close_to_addr: Option<String>,
}Fields§
§peer_id: Option<Vec<u8>>§peer_connected: Option<bool>§state: Option<i32>§scratch_txid: Option<Vec<u8>>§updates: Option<ListpeerchannelsChannelsUpdates>§ignore_fee_limits: Option<bool>§lost_state: Option<bool>§feerate: Option<ListpeerchannelsChannelsFeerate>§owner: Option<String>§short_channel_id: Option<String>§channel_id: Option<Vec<u8>>§funding_txid: Option<Vec<u8>>§funding_outnum: Option<u32>§initial_feerate: Option<String>§last_feerate: Option<String>§next_feerate: Option<String>§next_fee_step: Option<u32>§inflight: Vec<ListpeerchannelsChannelsInflight>§close_to: Option<Vec<u8>>§private: Option<bool>§opener: Option<i32>§closer: Option<i32>§funding: Option<ListpeerchannelsChannelsFunding>§to_us_msat: Option<Amount>§min_to_us_msat: Option<Amount>§max_to_us_msat: Option<Amount>§total_msat: Option<Amount>§fee_base_msat: Option<Amount>§fee_proportional_millionths: Option<u32>§dust_limit_msat: Option<Amount>§max_total_htlc_in_msat: Option<Amount>§their_reserve_msat: Option<Amount>§our_reserve_msat: Option<Amount>§spendable_msat: Option<Amount>§receivable_msat: Option<Amount>§minimum_htlc_in_msat: Option<Amount>§minimum_htlc_out_msat: Option<Amount>§maximum_htlc_out_msat: Option<Amount>§their_to_self_delay: Option<u32>§our_to_self_delay: Option<u32>§max_accepted_htlcs: Option<u32>§alias: Option<ListpeerchannelsChannelsAlias>§status: Vec<String>§in_payments_offered: Option<u64>§in_offered_msat: Option<Amount>§in_payments_fulfilled: Option<u64>§in_fulfilled_msat: Option<Amount>§out_payments_offered: Option<u64>§out_offered_msat: Option<Amount>§out_payments_fulfilled: Option<u64>§out_fulfilled_msat: Option<Amount>§last_stable_connection: Option<u64>§htlcs: Vec<ListpeerchannelsChannelsHtlcs>§close_to_addr: Option<String>Implementations§
source§impl ListpeerchannelsChannels
impl ListpeerchannelsChannels
sourcepub fn peer_id(&self) -> &[u8] ⓘ
pub fn peer_id(&self) -> &[u8] ⓘ
Returns the value of peer_id, or the default value if peer_id is unset.
sourcepub fn peer_connected(&self) -> bool
pub fn peer_connected(&self) -> bool
Returns the value of peer_connected, or the default value if peer_connected is unset.
sourcepub fn state(&self) -> ListpeerchannelsChannelsState
pub fn state(&self) -> ListpeerchannelsChannelsState
Returns the enum value of state, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_state(&mut self, value: ListpeerchannelsChannelsState)
pub fn set_state(&mut self, value: ListpeerchannelsChannelsState)
Sets state to the provided enum value.
sourcepub fn scratch_txid(&self) -> &[u8] ⓘ
pub fn scratch_txid(&self) -> &[u8] ⓘ
Returns the value of scratch_txid, or the default value if scratch_txid is unset.
sourcepub fn owner(&self) -> &str
pub fn owner(&self) -> &str
Returns the value of owner, or the default value if owner is unset.
sourcepub fn short_channel_id(&self) -> &str
pub fn short_channel_id(&self) -> &str
Returns the value of short_channel_id, or the default value if short_channel_id is unset.
sourcepub fn channel_id(&self) -> &[u8] ⓘ
pub fn channel_id(&self) -> &[u8] ⓘ
Returns the value of channel_id, or the default value if channel_id is unset.
sourcepub fn funding_txid(&self) -> &[u8] ⓘ
pub fn funding_txid(&self) -> &[u8] ⓘ
Returns the value of funding_txid, or the default value if funding_txid is unset.
sourcepub fn funding_outnum(&self) -> u32
pub fn funding_outnum(&self) -> u32
Returns the value of funding_outnum, or the default value if funding_outnum is unset.
sourcepub fn initial_feerate(&self) -> &str
pub fn initial_feerate(&self) -> &str
Returns the value of initial_feerate, or the default value if initial_feerate is unset.
sourcepub fn last_feerate(&self) -> &str
pub fn last_feerate(&self) -> &str
Returns the value of last_feerate, or the default value if last_feerate is unset.
sourcepub fn next_feerate(&self) -> &str
pub fn next_feerate(&self) -> &str
Returns the value of next_feerate, or the default value if next_feerate is unset.
sourcepub fn next_fee_step(&self) -> u32
pub fn next_fee_step(&self) -> u32
Returns the value of next_fee_step, or the default value if next_fee_step is unset.
sourcepub fn close_to(&self) -> &[u8] ⓘ
pub fn close_to(&self) -> &[u8] ⓘ
Returns the value of close_to, or the default value if close_to is unset.
sourcepub fn private(&self) -> bool
pub fn private(&self) -> bool
Returns the value of private, or the default value if private is unset.
sourcepub fn opener(&self) -> ChannelSide
pub fn opener(&self) -> ChannelSide
Returns the enum value of opener, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_opener(&mut self, value: ChannelSide)
pub fn set_opener(&mut self, value: ChannelSide)
Sets opener to the provided enum value.
sourcepub fn closer(&self) -> ChannelSide
pub fn closer(&self) -> ChannelSide
Returns the enum value of closer, or the default if the field is unset or set to an invalid enum value.
sourcepub fn set_closer(&mut self, value: ChannelSide)
pub fn set_closer(&mut self, value: ChannelSide)
Sets closer to the provided enum value.
sourcepub fn fee_proportional_millionths(&self) -> u32
pub fn fee_proportional_millionths(&self) -> u32
Returns the value of fee_proportional_millionths, or the default value if fee_proportional_millionths is unset.
sourcepub fn their_to_self_delay(&self) -> u32
pub fn their_to_self_delay(&self) -> u32
Returns the value of their_to_self_delay, or the default value if their_to_self_delay is unset.
sourcepub fn our_to_self_delay(&self) -> u32
pub fn our_to_self_delay(&self) -> u32
Returns the value of our_to_self_delay, or the default value if our_to_self_delay is unset.
sourcepub fn max_accepted_htlcs(&self) -> u32
pub fn max_accepted_htlcs(&self) -> u32
Returns the value of max_accepted_htlcs, or the default value if max_accepted_htlcs is unset.
sourcepub fn in_payments_offered(&self) -> u64
pub fn in_payments_offered(&self) -> u64
Returns the value of in_payments_offered, or the default value if in_payments_offered is unset.
sourcepub fn in_payments_fulfilled(&self) -> u64
pub fn in_payments_fulfilled(&self) -> u64
Returns the value of in_payments_fulfilled, or the default value if in_payments_fulfilled is unset.
sourcepub fn out_payments_offered(&self) -> u64
pub fn out_payments_offered(&self) -> u64
Returns the value of out_payments_offered, or the default value if out_payments_offered is unset.
sourcepub fn out_payments_fulfilled(&self) -> u64
pub fn out_payments_fulfilled(&self) -> u64
Returns the value of out_payments_fulfilled, or the default value if out_payments_fulfilled is unset.
sourcepub fn close_to_addr(&self) -> &str
pub fn close_to_addr(&self) -> &str
Returns the value of close_to_addr, or the default value if close_to_addr is unset.
sourcepub fn ignore_fee_limits(&self) -> bool
pub fn ignore_fee_limits(&self) -> bool
Returns the value of ignore_fee_limits, or the default value if ignore_fee_limits is unset.
sourcepub fn last_stable_connection(&self) -> u64
pub fn last_stable_connection(&self) -> u64
Returns the value of last_stable_connection, or the default value if last_stable_connection is unset.
sourcepub fn lost_state(&self) -> bool
pub fn lost_state(&self) -> bool
Returns the value of lost_state, or the default value if lost_state is unset.
Trait Implementations§
source§impl Clone for ListpeerchannelsChannels
impl Clone for ListpeerchannelsChannels
source§fn clone(&self) -> ListpeerchannelsChannels
fn clone(&self) -> ListpeerchannelsChannels
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ListpeerchannelsChannels
impl Debug for ListpeerchannelsChannels
source§impl Default for ListpeerchannelsChannels
impl Default for ListpeerchannelsChannels
source§fn default() -> ListpeerchannelsChannels
fn default() -> ListpeerchannelsChannels
source§impl<'de> Deserialize<'de> for ListpeerchannelsChannels
impl<'de> Deserialize<'de> for ListpeerchannelsChannels
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListpeerchannelsChannels, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ListpeerchannelsChannels, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Message for ListpeerchannelsChannels
impl Message for ListpeerchannelsChannels
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.source§impl PartialEq for ListpeerchannelsChannels
impl PartialEq for ListpeerchannelsChannels
source§fn eq(&self, other: &ListpeerchannelsChannels) -> bool
fn eq(&self, other: &ListpeerchannelsChannels) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for ListpeerchannelsChannels
impl Serialize for ListpeerchannelsChannels
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,
impl StructuralPartialEq for ListpeerchannelsChannels
Auto Trait Implementations§
impl Freeze for ListpeerchannelsChannels
impl RefUnwindSafe for ListpeerchannelsChannels
impl Send for ListpeerchannelsChannels
impl Sync for ListpeerchannelsChannels
impl Unpin for ListpeerchannelsChannels
impl UnwindSafe for ListpeerchannelsChannels
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
source§impl<T> Downcast for T
impl<T> Downcast for T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request