Enum lightning_invoice::Fallback
source · pub enum Fallback {
SegWitProgram {
version: u5,
program: Vec<u8>,
},
PubKeyHash([u8; 20]),
ScriptHash([u8; 20]),
}
Expand description
Fallback address in case no LN payment is possible
Variants§
Trait Implementations§
source§impl Base32Len for Fallback
impl Base32Len for Fallback
source§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
source§impl FromBase32 for Fallback
impl FromBase32 for Fallback
§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
source§fn from_base32(field_data: &[u5]) -> Result<Fallback, ParseError>
fn from_base32(field_data: &[u5]) -> Result<Fallback, ParseError>
Convert a base32 slice to
Self
.