pub struct ChannelUpdateInfo {
pub timestamp: u64,
pub enabled: bool,
pub outbound_liquidity: Option<u128>,
pub tlc_expiry_delta: u64,
pub tlc_minimum_value: u128,
pub fee_rate: u64,
}Expand description
The channel update info with a single direction of channel.
This is a pure data struct used by both the internal graph representation and the RPC JSON response types.
Fields§
§timestamp: u64The timestamp is the time when the channel update was received by the node.
enabled: boolWhether the channel can be currently used for payments (in this one direction).
outbound_liquidity: Option<u128>The exact amount of balance that we can send to the other party via the channel.
tlc_expiry_delta: u64The difference in htlc expiry values that you must have when routing through this channel (in milliseconds).
tlc_minimum_value: u128The minimum value, which must be relayed to the next hop via the channel
fee_rate: u64The forwarding fee rate for the channel.
Trait Implementations§
Source§impl Clone for ChannelUpdateInfo
impl Clone for ChannelUpdateInfo
Source§fn clone(&self) -> ChannelUpdateInfo
fn clone(&self) -> ChannelUpdateInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelUpdateInfo
impl Debug for ChannelUpdateInfo
Source§impl<'de> Deserialize<'de> for ChannelUpdateInfo
impl<'de> Deserialize<'de> for ChannelUpdateInfo
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
Source§impl From<&ChannelTlcInfo> for ChannelUpdateInfo
impl From<&ChannelTlcInfo> for ChannelUpdateInfo
Source§fn from(info: &ChannelTlcInfo) -> Self
fn from(info: &ChannelTlcInfo) -> Self
Converts to this type from the input type.
Source§impl From<&ChannelUpdate> for ChannelUpdateInfo
impl From<&ChannelUpdate> for ChannelUpdateInfo
Source§fn from(update: &ChannelUpdate) -> Self
fn from(update: &ChannelUpdate) -> Self
Converts to this type from the input type.
Source§impl From<ChannelTlcInfo> for ChannelUpdateInfo
impl From<ChannelTlcInfo> for ChannelUpdateInfo
Source§fn from(info: ChannelTlcInfo) -> Self
fn from(info: ChannelTlcInfo) -> Self
Converts to this type from the input type.
Source§impl From<ChannelUpdate> for ChannelUpdateInfo
impl From<ChannelUpdate> for ChannelUpdateInfo
Source§fn from(update: ChannelUpdate) -> Self
fn from(update: ChannelUpdate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChannelUpdateInfo
impl PartialEq for ChannelUpdateInfo
Source§impl Serialize for ChannelUpdateInfo
impl Serialize for ChannelUpdateInfo
impl Copy for ChannelUpdateInfo
impl Eq for ChannelUpdateInfo
impl StructuralPartialEq for ChannelUpdateInfo
Auto Trait Implementations§
impl Freeze for ChannelUpdateInfo
impl RefUnwindSafe for ChannelUpdateInfo
impl Send for ChannelUpdateInfo
impl Sync for ChannelUpdateInfo
impl Unpin for ChannelUpdateInfo
impl UnsafeUnpin for ChannelUpdateInfo
impl UnwindSafe for ChannelUpdateInfo
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