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 which should be signed.

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
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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.