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.
This is not exported to bindings users as we don’t yet support Option<Enum>
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§
source§impl PartialEq<RawHrp> for RawHrp
impl PartialEq<RawHrp> for RawHrp
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more