Struct lightning_invoice::RawHrp
source · [−]pub struct RawHrp {
pub currency: Currency,
pub raw_amount: Option<u64>,
pub si_prefix: Option<SiPrefix>,
}
Expand description
Data of the RawInvoice
that is encoded in the human readable part
(C-not exported) As we don’t yet support Option
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
impl StructuralEq for RawHrp
impl StructuralPartialEq for RawHrp
Auto Trait Implementations
impl RefUnwindSafe for RawHrp
impl Send for RawHrp
impl Sync for RawHrp
impl Unpin for RawHrp
impl UnwindSafe for RawHrp
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more