pub type InvoiceFeatures = Features<InvoiceContext>;
Expand description
Features used within an invoice.
Trait Implementations
sourceimpl Base32Len for InvoiceFeatures
impl Base32Len for InvoiceFeatures
sourcefn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
sourceimpl FromBase32 for InvoiceFeatures
impl FromBase32 for InvoiceFeatures
type Err = Error
type Err = Error
The associated error which can be returned from parsing (e.g. because of bad padding).
sourcefn from_base32(field_data: &[u5]) -> Result<InvoiceFeatures, Error>
fn from_base32(field_data: &[u5]) -> Result<InvoiceFeatures, Error>
Convert a base32 slice to Self
.
sourceimpl Readable for InvoiceFeatures
impl Readable for InvoiceFeatures
sourceimpl ToBase32 for InvoiceFeatures
impl ToBase32 for InvoiceFeatures
sourceimpl Writeable for InvoiceFeatures
impl Writeable for InvoiceFeatures
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn encode_with_len(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode_with_len(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more