pub struct Channel {Show 35 fields
pub state: String,
pub scratch_txid: Option<String>,
pub owner: Option<String>,
pub short_channel_id: Option<String>,
pub alias: Option<Aliases>,
pub direction: Option<u64>,
pub channel_id: String,
pub funding_txid: String,
pub close_to_addr: Option<String>,
pub close_to: Option<String>,
pub private: bool,
pub to_us_msat: MSat,
pub min_to_us_msat: MSat,
pub max_to_us_msat: MSat,
pub total_msat: MSat,
pub dust_limit_msat: MSat,
pub max_total_htlc_in_msat: MSat,
pub their_reserve_msat: MSat,
pub our_reserve_msat: MSat,
pub spendable_msat: MSat,
pub receivable_msat: MSat,
pub minimum_htlc_in_msat: MSat,
pub their_to_self_delay: u64,
pub our_to_self_delay: u64,
pub max_accepted_htlcs: u64,
pub status: Vec<String>,
pub in_payments_offered: u64,
pub in_offered_msat: MSat,
pub in_payments_fulfilled: u64,
pub in_fulfilled_msat: MSat,
pub out_payments_offered: u64,
pub out_offered_msat: MSat,
pub out_payments_fulfilled: u64,
pub out_fulfilled_msat: MSat,
pub htlcs: Vec<Htlc>,
}Fields§
§state: String§scratch_txid: Option<String>§owner: Option<String>§short_channel_id: Option<String>§alias: Option<Aliases>§direction: Option<u64>§channel_id: String§funding_txid: String§close_to_addr: Option<String>§close_to: Option<String>§private: bool§to_us_msat: MSat§min_to_us_msat: MSat§max_to_us_msat: MSat§total_msat: MSat§dust_limit_msat: MSat§max_total_htlc_in_msat: MSat§their_reserve_msat: MSat§our_reserve_msat: MSat§spendable_msat: MSat§receivable_msat: MSat§minimum_htlc_in_msat: MSat§their_to_self_delay: u64§our_to_self_delay: u64§max_accepted_htlcs: u64§status: Vec<String>§in_payments_offered: u64§in_offered_msat: MSat§in_payments_fulfilled: u64§in_fulfilled_msat: MSat§out_payments_offered: u64§out_offered_msat: MSat§out_payments_fulfilled: u64§out_fulfilled_msat: MSat§htlcs: Vec<Htlc>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
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 Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 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>
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 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>
Wrap the input message
T in a tonic::Request