[][src]Struct lightning_invoice::RawHrp

pub struct RawHrp {
    pub currency: Currency,
    pub raw_amount: Option<u64>,
    pub si_prefix: Option<SiPrefix>,
}

Data of the RawInvoice that is encoded in the human readable part

Fields

currency: Currency

The currency deferred from the 3rd and 4th character of the bech32 transaction

raw_amount: Option<u64>

The amount that, multiplied by the SI prefix, has to be payed

si_prefix: Option<SiPrefix>

SI prefix that gets multiplied with the raw_amount

Trait Implementations

impl Clone for RawHrp[src]

impl Debug for RawHrp[src]

impl Display for RawHrp[src]

impl Eq for RawHrp[src]

impl FromStr for RawHrp[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl PartialEq<RawHrp> for RawHrp[src]

impl StructuralEq for RawHrp[src]

impl StructuralPartialEq for RawHrp[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.