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)
Reference to the directly supplied description in the invoice
Hash(&'f Sha256)
Reference to the description’s hash included in the invoice
Trait Implementations§
source§impl<'f> Clone for InvoiceDescription<'f>
impl<'f> Clone for InvoiceDescription<'f>
source§fn clone(&self) -> InvoiceDescription<'f>
fn clone(&self) -> InvoiceDescription<'f>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'f> Debug for InvoiceDescription<'f>
impl<'f> Debug for InvoiceDescription<'f>
source§impl<'f> PartialEq<InvoiceDescription<'f>> for InvoiceDescription<'f>
impl<'f> PartialEq<InvoiceDescription<'f>> for InvoiceDescription<'f>
source§fn eq(&self, other: &InvoiceDescription<'f>) -> bool
fn eq(&self, other: &InvoiceDescription<'f>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.