Struct lightning::routing::router::Payee [−][src]
pub struct Payee {
pub pubkey: PublicKey,
pub features: Option<InvoiceFeatures>,
pub route_hints: Vec<RouteHint>,
pub expiry_time: Option<u64>,
}
Expand description
The recipient of a payment.
Fields
pubkey: PublicKey
The node id of the payee.
features: Option<InvoiceFeatures>
Features supported by the payee.
May be set from the payee’s invoice or via for_keysend
. May be None
if the invoice
does not contain any features.
route_hints: Vec<RouteHint>
Hints for routing to the payee, containing channels connecting the payee to public nodes.
expiry_time: Option<u64>
Expiration of a payment to the payee, in seconds relative to the UNIX epoch.
Implementations
Creates a payee with the node id of the given pubkey
.
Creates a payee with the node id of the given pubkey
to use for keysend payments.
Includes the payee’s features.
(C-not exported) since bindings don’t support move semantics
Includes hints for routing to the payee.
(C-not exported) since bindings don’t support move semantics
Includes a payment expiration in seconds relative to the UNIX epoch.
(C-not exported) since bindings don’t support move semantics
Trait Implementations
Writes self out to the given Writer
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
Writes self out to a Vec
Auto Trait Implementations
impl RefUnwindSafe for Payee
impl UnwindSafe for Payee
Blanket Implementations
Mutably borrows from an owned value. Read more