Struct lightning_invoice::RawInvoice[][src]

pub struct RawInvoice {
    pub hrp: RawHrp,
    pub data: RawDataPart,
}
Expand description

Represents an syntactically correct Invoice for a payment on the lightning network, but without the signature information. De- and encoding should not lead to information loss but may lead to different hashes.

For methods without docs see the corresponding methods in Invoice.

Fields

hrp: RawHrp

human readable part

data: RawDataPart

data part

Implementations

Calculate the hash of the encoded RawInvoice

Signs the invoice using the supplied sign_function. This function MAY fail with an error of type E. Since the signature of a SignedRawInvoice is not required to be valid there are no constraints regarding the validity of the produced signature.

(C-not exported) As we don’t currently support passing function pointers into methods explicitly.

Returns an iterator over all tagged fields with known semantics.

(C-not exported) As there is not yet a manual mapping for a FilterMap

(C-not exported) as we don’t support Vec<&NonOpaqueType>

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

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

This method tests for !=.

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.

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)

recently added

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.