Enum lightning_invoice::SemanticError [−][src]
pub enum SemanticError { NoPaymentHash, MultiplePaymentHashes, NoDescription, MultipleDescriptions, MultiplePaymentSecrets, InvalidFeatures, InvalidRecoveryId, InvalidSignature, }
Errors that may occur when converting a RawInvoice
to an Invoice
. They relate to the
requirements sections in BOLT #11
Variants
The invoice is missing the mandatory payment hash
The invoice has multiple payment hashes which isn’t allowed
No description or description hash are part of the invoice
The invoice contains multiple descriptions and/or description hashes which isn’t allowed
The invoice contains multiple payment secrets
The invoice’s features are invalid
The recovery id doesn’t fit the signature/pub key
The invoice’s signature is invalid
Trait Implementations
impl Clone for SemanticError
[src]
impl Clone for SemanticError
[src]fn clone(&self) -> SemanticError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for SemanticError
[src]
impl Eq for SemanticError
[src]impl Error for SemanticError
[src]
impl Error for SemanticError
[src]impl From<SemanticError> for ParseOrSemanticError
[src]
impl From<SemanticError> for ParseOrSemanticError
[src]fn from(e: SemanticError) -> Self
[src]
impl PartialEq<SemanticError> for SemanticError
[src]
impl PartialEq<SemanticError> for SemanticError
[src]impl StructuralEq for SemanticError
[src]
impl StructuralEq for SemanticError
[src]impl StructuralPartialEq for SemanticError
[src]
impl StructuralPartialEq for SemanticError
[src]Auto Trait Implementations
impl RefUnwindSafe for SemanticError
impl RefUnwindSafe for SemanticError
impl Send for SemanticError
impl Send for SemanticError
impl Sync for SemanticError
impl Sync for SemanticError
impl Unpin for SemanticError
impl Unpin for SemanticError
impl UnwindSafe for SemanticError
impl UnwindSafe for SemanticError