pub enum Bolt11InvoiceDescription {
Direct(Description),
Hash(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.
Variants§
Direct(Description)
Description of what the invoice is for
Hash(Sha256)
Hash of the description of what the invoice is for
Trait Implementations§
Source§impl Clone for Bolt11InvoiceDescription
impl Clone for Bolt11InvoiceDescription
Source§fn clone(&self) -> Bolt11InvoiceDescription
fn clone(&self) -> Bolt11InvoiceDescription
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 Debug for Bolt11InvoiceDescription
impl Debug for Bolt11InvoiceDescription
Source§impl Display for Bolt11InvoiceDescription
impl Display for Bolt11InvoiceDescription
Source§impl Ord for Bolt11InvoiceDescription
impl Ord for Bolt11InvoiceDescription
Source§fn cmp(&self, other: &Bolt11InvoiceDescription) -> Ordering
fn cmp(&self, other: &Bolt11InvoiceDescription) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Bolt11InvoiceDescription
impl PartialEq for Bolt11InvoiceDescription
Source§impl PartialOrd for Bolt11InvoiceDescription
impl PartialOrd for Bolt11InvoiceDescription
impl Eq for Bolt11InvoiceDescription
impl StructuralPartialEq for Bolt11InvoiceDescription
Auto Trait Implementations§
impl Freeze for Bolt11InvoiceDescription
impl RefUnwindSafe for Bolt11InvoiceDescription
impl Send for Bolt11InvoiceDescription
impl Sync for Bolt11InvoiceDescription
impl Unpin for Bolt11InvoiceDescription
impl UnwindSafe for Bolt11InvoiceDescription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more