pub enum Amount {
Bitcoin {
amount_msats: u64,
},
Currency {
iso4217_code: CurrencyCode,
amount: u64,
},
}
Expand description
The minimum amount required for an item in an Offer
, denominated in either bitcoin or
another currency.
Variants§
Bitcoin
An amount of bitcoin.
Currency
An amount of currency specified using ISO 4712.
Fields
§
iso4217_code: CurrencyCode
The currency that the amount is denominated in.
Trait Implementations§
source§impl PartialEq for Amount
impl PartialEq for Amount
impl StructuralPartialEq for Amount
Auto Trait Implementations§
impl Freeze for Amount
impl RefUnwindSafe for Amount
impl Send for Amount
impl Sync for Amount
impl Unpin for Amount
impl UnwindSafe for Amount
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