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 RawBolt11Invoice
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 Ord for RawHrp
impl Ord for RawHrp
source§impl PartialOrd for RawHrp
impl PartialOrd for RawHrp
impl Eq for RawHrp
impl StructuralPartialEq for RawHrp
Auto Trait Implementations§
impl Freeze for RawHrp
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)