[][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 Eq for RawHrp
[src]

impl PartialEq<RawHrp> for RawHrp
[src]

impl Clone for RawHrp
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for RawHrp
[src]

impl Display for RawHrp
[src]

impl FromStr for RawHrp
[src]

type Err = ParseError

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for RawHrp

impl Sync for RawHrp

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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