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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more