Struct lightning::routing::gossip::RoutingFees
source · pub struct RoutingFees {
pub base_msat: u32,
pub proportional_millionths: u32,
}
Expand description
Fees for routing via a given channel or a node
Fields§
§base_msat: u32
Flat routing fee in millisatoshis.
proportional_millionths: u32
Liquidity-based routing fee in millionths of a routed amount. In other words, 10000 is 1%.
Trait Implementations§
source§impl Clone for RoutingFees
impl Clone for RoutingFees
source§fn clone(&self) -> RoutingFees
fn clone(&self) -> RoutingFees
Returns a copy 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 RoutingFees
impl Debug for RoutingFees
source§impl Hash for RoutingFees
impl Hash for RoutingFees
source§impl Ord for RoutingFees
impl Ord for RoutingFees
source§fn cmp(&self, other: &RoutingFees) -> Ordering
fn cmp(&self, other: &RoutingFees) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RoutingFees
impl PartialEq for RoutingFees
source§fn eq(&self, other: &RoutingFees) -> bool
fn eq(&self, other: &RoutingFees) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RoutingFees
impl PartialOrd for RoutingFees
source§fn partial_cmp(&self, other: &RoutingFees) -> Option<Ordering>
fn partial_cmp(&self, other: &RoutingFees) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Readable for RoutingFees
impl Readable for RoutingFees
source§impl Writeable for RoutingFees
impl Writeable for RoutingFees
impl Copy for RoutingFees
impl Eq for RoutingFees
impl StructuralPartialEq for RoutingFees
Auto Trait Implementations§
impl Freeze for RoutingFees
impl RefUnwindSafe for RoutingFees
impl Send for RoutingFees
impl Sync for RoutingFees
impl Unpin for RoutingFees
impl UnwindSafe for RoutingFees
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