[][src]Enum lightning_invoice::Fallback

pub enum Fallback {
    SegWitProgram {
        version: u5,
        program: Vec<u8>,
    },
    PubKeyHash([u8; 20]),
    ScriptHash([u8; 20]),
}

Fallback address in case no LN payment is possible

Variants

SegWitProgram

Fields of SegWitProgram

version: u5program: Vec<u8>
PubKeyHash([u8; 20])
ScriptHash([u8; 20])

Trait Implementations

impl Base32Len for Fallback[src]

impl Clone for Fallback[src]

impl Debug for Fallback[src]

impl Eq for Fallback[src]

impl FromBase32 for Fallback[src]

type Err = ParseError

The associated error which can be returned from parsing (e.g. because of bad padding).

impl PartialEq<Fallback> for Fallback[src]

impl StructuralEq for Fallback[src]

impl StructuralPartialEq for Fallback[src]

impl ToBase32 for Fallback[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.