Enum lightning_invoice::InvoiceDescription [−][src]
pub enum InvoiceDescription<'f> {
Direct(&'f Description),
Hash(&'f Sha256),
}
Expand description
Represents the description of an invoice which has to be either a directly included string or a hash of a description provided out of band.
(C-not exported) As we don’t have a good way to map the reference lifetimes making this practically impossible to use safely in languages like C.
Variants
Direct(&'f Description)
Tuple Fields
0: &'f Description
Reference to the directly supplied description in the invoice
Hash(&'f Sha256)
Tuple Fields
0: &'f Sha256
Reference to the description’s hash included in the invoice
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<'f> RefUnwindSafe for InvoiceDescription<'f>
impl<'f> Send for InvoiceDescription<'f>
impl<'f> Sync for InvoiceDescription<'f>
impl<'f> Unpin for InvoiceDescription<'f>
impl<'f> UnwindSafe for InvoiceDescription<'f>
Blanket Implementations
Mutably borrows from an owned value. Read more