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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Reads a Self in from the given Read

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

Writes self out to a Vec

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Reads a Self in from the given Read

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.