[−][src]Struct lightning_invoice::RawHrp
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.
pub fn from_str(hrp: &str) -> Result<Self, Self::Err>
[src]
impl PartialEq<RawHrp> for RawHrp
[src]
impl StructuralEq for RawHrp
[src]
impl StructuralPartialEq for RawHrp
[src]
Auto Trait Implementations
impl RefUnwindSafe for RawHrp
[src]
impl Send for RawHrp
[src]
impl Sync for RawHrp
[src]
impl Unpin for RawHrp
[src]
impl UnwindSafe for RawHrp
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,