[][src]Struct lightning_invoice::Description

pub struct Description(_);

Description string

Invariants

The description can be at most 639 bytes long

Implementations

impl Description[src]

pub fn new(description: String) -> Result<Description, CreationError>[src]

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.

pub fn into_inner(self) -> String[src]

Returns the underlying description String

Trait Implementations

impl Base32Len for Description[src]

impl Clone for Description[src]

impl Debug for Description[src]

impl Deref for Description[src]

type Target = str

The resulting type after dereferencing.

impl Eq for Description[src]

impl FromBase32 for Description[src]

type Err = ParseError

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

impl Into<String> for Description[src]

impl PartialEq<Description> for Description[src]

impl StructuralEq for Description[src]

impl StructuralPartialEq for Description[src]

impl ToBase32 for Description[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Base32Len for T where
    T: AsRef<[u8]>, 
[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> ToBase32 for T where
    T: AsRef<[u8]>, 
[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.