[][src]Enum lightning_invoice::InvoiceDescription

pub enum InvoiceDescription<'f> {
    Direct(&'f Description),
    Hash(&'f Sha256),
}

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.

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

impl<'f> Clone for InvoiceDescription<'f>[src]

impl<'f> Debug for InvoiceDescription<'f>[src]

impl<'f> Eq for InvoiceDescription<'f>[src]

impl<'f> PartialEq<InvoiceDescription<'f>> for InvoiceDescription<'f>[src]

impl<'f> StructuralEq for InvoiceDescription<'f>[src]

impl<'f> StructuralPartialEq for InvoiceDescription<'f>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.