[][src]Enum lightning_invoice::SemanticError

pub enum SemanticError {
    NoPaymentHash,
    MultiplePaymentHashes,
    NoDescription,
    MultipleDescriptions,
    InvalidRecoveryId,
    InvalidSignature,
}

Errors that may occur when converting a RawInvoice to an Invoice. They relate to the requirements sections in BOLT #11

Variants

NoPaymentHash

The invoice is missing the mandatory payment hash

MultiplePaymentHashes

The invoice has multiple payment hashes which isn't allowed

NoDescription

No description or description hash are part of the invoice

MultipleDescriptions

The invoice contains multiple descriptions and/or description hashes which isn't allowed

InvalidRecoveryId

The recovery id doesn't fit the signature/pub key

InvalidSignature

The invoice's signature is invalid

Trait Implementations

impl Clone for SemanticError
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<SemanticError> for ParseOrSemanticError
[src]

impl Eq for SemanticError
[src]

impl PartialEq<SemanticError> for SemanticError
[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Debug for SemanticError
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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