[−][src]Struct lightning_invoice::Description
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]
fn base32_len(&self) -> usize
[src]
impl Clone for Description
[src]
fn clone(&self) -> Description
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Description
[src]
impl Deref for Description
[src]
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).
fn from_base32(field_data: &[u5]) -> Result<Description, ParseError>
[src]
impl Into<String> for Description
[src]
impl PartialEq<Description> for Description
[src]
fn eq(&self, other: &Description) -> bool
[src]
fn ne(&self, other: &Description) -> bool
[src]
impl StructuralEq for Description
[src]
impl StructuralPartialEq for Description
[src]
impl ToBase32 for Description
[src]
fn write_base32<W: WriteBase32>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
[src]
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
fn to_base32(&self) -> Vec<u5>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Base32Len for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
fn base32_len(&self) -> usize
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToBase32 for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
fn write_base32<W>(&self, writer: &mut W) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
[src]
W: WriteBase32,
fn to_base32(&self) -> Vec<u5>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,