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
pub fn sign<F, E>(self, sign_method: F) -> Result<SignedRawInvoice, E> where
F: FnOnce(&Message) -> Result<RecoverableSignature, E>,
pub fn sign<F, E>(self, sign_method: F) -> Result<SignedRawInvoice, E> where
F: FnOnce(&Message) -> Result<RecoverableSignature, E>,
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.
pub fn known_tagged_fields(
&self
) -> FilterMap<Iter<'_, RawTaggedField>, fn(_: &RawTaggedField) -> Option<&TaggedField>>
pub fn known_tagged_fields(
&self
) -> FilterMap<Iter<'_, RawTaggedField>, fn(_: &RawTaggedField) -> Option<&TaggedField>>
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>
pub fn private_routes(&self) -> Vec<&PrivateRoute>ⓘ
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RawInvoice
impl Send for RawInvoice
impl Sync for RawInvoice
impl Unpin for RawInvoice
impl UnwindSafe for RawInvoice
Blanket Implementations
Mutably borrows from an owned value. Read more