#[repr(i64)]pub enum HbarUnit {
Tinybar = 1,
Microbar = 100,
Millibar = 100_000,
Hbar = 100_000_000,
Kilobar = 100_000_000_000,
Megabar = 100_000_000_000_000,
Gigabar = 100_000_000_000_000_000,
}
Expand description
Common units of hbar; for the most part they follow SI prefix conventions.
See the Hedera Documentation.
Variants§
Tinybar = 1
The atomic (smallest) unit of Hbar
, used natively by the Hedera network.
It is equivalent to 1⁄100,000,000 Hbar
.
Microbar = 100
Millibar = 100_000
Hbar = 100_000_000
Kilobar = 100_000_000_000
Megabar = 100_000_000_000_000
Gigabar = 100_000_000_000_000_000
Implementations§
Trait Implementations§
source§impl PartialEq for HbarUnit
impl PartialEq for HbarUnit
impl Copy for HbarUnit
impl Eq for HbarUnit
impl StructuralPartialEq for HbarUnit
Auto Trait Implementations§
impl Freeze for HbarUnit
impl RefUnwindSafe for HbarUnit
impl Send for HbarUnit
impl Sync for HbarUnit
impl Unpin for HbarUnit
impl UnwindSafe for HbarUnit
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<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.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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