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

source

pub fn peer_id(&self) -> &[u8]

Returns the value of peer_id, or the default value if peer_id is unset.

source

pub fn peer_connected(&self) -> bool

Returns the value of peer_connected, or the default value if peer_connected is unset.

source

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.

source

pub fn set_state(&mut self, value: ListpeerchannelsChannelsState)

Sets state to the provided enum value.

source

pub fn scratch_txid(&self) -> &[u8]

Returns the value of scratch_txid, or the default value if scratch_txid is unset.

source

pub fn owner(&self) -> &str

Returns the value of owner, or the default value if owner is unset.

source

pub fn short_channel_id(&self) -> &str

Returns the value of short_channel_id, or the default value if short_channel_id is unset.

source

pub fn channel_id(&self) -> &[u8]

Returns the value of channel_id, or the default value if channel_id is unset.

source

pub fn funding_txid(&self) -> &[u8]

Returns the value of funding_txid, or the default value if funding_txid is unset.

source

pub fn funding_outnum(&self) -> u32

Returns the value of funding_outnum, or the default value if funding_outnum is unset.

source

pub fn initial_feerate(&self) -> &str

Returns the value of initial_feerate, or the default value if initial_feerate is unset.

source

pub fn last_feerate(&self) -> &str

Returns the value of last_feerate, or the default value if last_feerate is unset.

source

pub fn next_feerate(&self) -> &str

Returns the value of next_feerate, or the default value if next_feerate is unset.

source

pub fn next_fee_step(&self) -> u32

Returns the value of next_fee_step, or the default value if next_fee_step is unset.

source

pub fn close_to(&self) -> &[u8]

Returns the value of close_to, or the default value if close_to is unset.

source

pub fn private(&self) -> bool

Returns the value of private, or the default value if private is unset.

source

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.

source

pub fn set_opener(&mut self, value: ChannelSide)

Sets opener to the provided enum value.

source

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.

source

pub fn set_closer(&mut self, value: ChannelSide)

Sets closer to the provided enum value.

source

pub fn fee_proportional_millionths(&self) -> u32

Returns the value of fee_proportional_millionths, or the default value if fee_proportional_millionths is unset.

source

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.

source

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.

source

pub fn max_accepted_htlcs(&self) -> u32

Returns the value of max_accepted_htlcs, or the default value if max_accepted_htlcs is unset.

source

pub fn in_payments_offered(&self) -> u64

Returns the value of in_payments_offered, or the default value if in_payments_offered is unset.

source

pub fn in_payments_fulfilled(&self) -> u64

Returns the value of in_payments_fulfilled, or the default value if in_payments_fulfilled is unset.

source

pub fn out_payments_offered(&self) -> u64

Returns the value of out_payments_offered, or the default value if out_payments_offered is unset.

source

pub fn out_payments_fulfilled(&self) -> u64

Returns the value of out_payments_fulfilled, or the default value if out_payments_fulfilled is unset.

source

pub fn close_to_addr(&self) -> &str

Returns the value of close_to_addr, or the default value if close_to_addr is unset.

source

pub fn ignore_fee_limits(&self) -> bool

Returns the value of ignore_fee_limits, or the default value if ignore_fee_limits is unset.

source

pub fn last_stable_connection(&self) -> u64

Returns the value of last_stable_connection, or the default value if last_stable_connection is unset.

source

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

source§

fn clone(&self) -> ListpeerchannelsChannels

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ListpeerchannelsChannels

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ListpeerchannelsChannels

source§

fn default() -> ListpeerchannelsChannels

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ListpeerchannelsChannels

source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<ListpeerchannelsChannels, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Message for ListpeerchannelsChannels

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for ListpeerchannelsChannels

source§

fn eq(&self, other: &ListpeerchannelsChannels) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ListpeerchannelsChannels

source§

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
source§

impl StructuralPartialEq for ListpeerchannelsChannels

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Any for T
where T: Any,

source§

fn into_any(self: Box<T>) -> Box<dyn Any>

source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

source§

fn type_name(&self) -> &'static str

source§

impl<T> AnySync for T
where T: Any + Send + Sync,

source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

source§

impl<T> AsAny for T
where T: Any,

source§

fn as_any(&self) -> &(dyn Any + 'static)

source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

source§

fn type_name(&self) -> &'static str

Gets the type name of self
source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Downcast for T
where T: AsAny + ?Sized,

source§

fn is<T>(&self) -> bool
where T: AsAny,

Returns true if the boxed type is the same as T. Read more
source§

fn downcast_ref<T>(&self) -> Option<&T>
where T: AsAny,

Forward to the method defined on the type Any.
source§

fn downcast_mut<T>(&mut self) -> Option<&mut T>
where T: AsAny,

Forward to the method defined on the type Any.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,