Struct lightning_invoice::Description [−][src]
pub struct Description(_);
Expand description
Implementations
Creates a new Description
if description
is at most 1023 bytes long,
returns CreationError::DescriptionTooLong
otherwise
Please note that single characters may use more than one byte due to UTF8 encoding.
Returns the underlying description String
Trait Implementations
Calculate the base32 serialized length
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
Convert a base32 slice to Self
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more
Auto Trait Implementations
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnwindSafe for Description
Blanket Implementations
Mutably borrows from an owned value. Read more