pub struct LxRouteHop {
pub node_pk: NodePk,
pub node_alias: Option<LxNodeAlias>,
pub scid: Scid,
pub fee_or_amount: Amount,
pub announced: bool,
}Expand description
Newtype for RouteHop.
Fields§
§node_pk: NodePkThe node_id of the node at this hop.
node_alias: Option<LxNodeAlias>The alias of the node at this hop, if known.
scid: ScidThe channel used from the previous hop to reach this node.
fee_or_amount: AmountIf this is NOT the last hop in LxPath::hops, this is the fee taken
on this hop (for paying for the use of the next channel in the path).
If this IS the last hop in LxPath::hops:
- If we’re sending to a blinded payment path, this is the fee paid for use of the entire blinded path.
- Otherwise, this is the amount of this
LxPath’s part of the payment.
announced: boolWhether we believe this channel is announced in the public graph.
Trait Implementations§
Source§impl Clone for LxRouteHop
impl Clone for LxRouteHop
Source§fn clone(&self) -> LxRouteHop
fn clone(&self) -> LxRouteHop
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 LxRouteHop
impl Debug for LxRouteHop
Source§impl<'de> Deserialize<'de> for LxRouteHop
impl<'de> Deserialize<'de> for LxRouteHop
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<RouteHop> for LxRouteHop
impl From<RouteHop> for LxRouteHop
Source§impl Hash for LxRouteHop
impl Hash for LxRouteHop
Source§impl PartialEq for LxRouteHop
impl PartialEq for LxRouteHop
Source§impl Serialize for LxRouteHop
impl Serialize for LxRouteHop
impl Eq for LxRouteHop
impl StructuralPartialEq for LxRouteHop
Auto Trait Implementations§
impl Freeze for LxRouteHop
impl RefUnwindSafe for LxRouteHop
impl Send for LxRouteHop
impl Sync for LxRouteHop
impl Unpin for LxRouteHop
impl UnsafeUnpin for LxRouteHop
impl UnwindSafe for LxRouteHop
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