Struct lightning_types::routing::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§impl PartialOrd for RoutingFees
impl PartialOrd 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)