Enum breez_sdk_liquid::bitcoin::util::amount::Denomination
pub enum Denomination {
Bitcoin,
MilliBitcoin,
MicroBitcoin,
NanoBitcoin,
PicoBitcoin,
Bit,
Satoshi,
MilliSatoshi,
}
Expand description
A set of denominations in which amounts can be expressed.
Variants§
Bitcoin
BTC
MilliBitcoin
mBTC
MicroBitcoin
uBTC
NanoBitcoin
nBTC
PicoBitcoin
pBTC
Bit
bits
Satoshi
satoshi
MilliSatoshi
msat
Trait Implementations§
§impl Clone for Denomination
impl Clone for Denomination
§fn clone(&self) -> Denomination
fn clone(&self) -> Denomination
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for Denomination
impl Debug for Denomination
§impl Display for Denomination
impl Display for Denomination
§impl FromStr for Denomination
impl FromStr for Denomination
§fn from_str(s: &str) -> Result<Denomination, <Denomination as FromStr>::Err>
fn from_str(s: &str) -> Result<Denomination, <Denomination as FromStr>::Err>
Convert from a str to Denomination.
Any combination of upper and/or lower case, excluding uppercase of SI(m, u, n, p) is considered valid.
- Singular: BTC, mBTC, uBTC, nBTC, pBTC
- Plural or singular: sat, satoshi, bit, msat
Due to ambiguity between mega and milli, pico and peta we prohibit usage of leading capital ‘M’, ‘P’.
§type Err = ParseAmountError
type Err = ParseAmountError
The associated error which can be returned from parsing.
§impl Hash for Denomination
impl Hash for Denomination
§impl PartialEq for Denomination
impl PartialEq for Denomination
impl Copy for Denomination
impl Eq for Denomination
impl StructuralPartialEq for Denomination
Auto Trait Implementations§
impl Freeze for Denomination
impl RefUnwindSafe for Denomination
impl Send for Denomination
impl Sync for Denomination
impl Unpin for Denomination
impl UnwindSafe for Denomination
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request