[][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]

impl Debug for SemanticError[src]

impl Display for SemanticError[src]

impl Eq for SemanticError[src]

impl Error for SemanticError[src]

impl From<SemanticError> for ParseOrSemanticError[src]

impl PartialEq<SemanticError> for SemanticError[src]

impl StructuralEq for SemanticError[src]

impl StructuralPartialEq for SemanticError[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> ToString for T where
    T: Display + ?Sized
[src]

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.