Enum hedera::TokenSupplyType
source · #[repr(C)]pub enum TokenSupplyType {
Infinite = 0,
Finite = 1,
}
Expand description
Possible token supply types.
Can be used to restrict supply to a set maximum.
Defaults to Infinite
.
Variants§
Infinite = 0
Indicates the token has a maximum supply of u64::MAX
.
Finite = 1
Indicates the token has a configurable maximum supply, provided on token creation.
Trait Implementations§
source§impl Clone for TokenSupplyType
impl Clone for TokenSupplyType
source§fn clone(&self) -> TokenSupplyType
fn clone(&self) -> TokenSupplyType
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 moresource§impl Debug for TokenSupplyType
impl Debug for TokenSupplyType
source§impl Hash for TokenSupplyType
impl Hash for TokenSupplyType
source§impl PartialEq for TokenSupplyType
impl PartialEq for TokenSupplyType
source§fn eq(&self, other: &TokenSupplyType) -> bool
fn eq(&self, other: &TokenSupplyType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TokenSupplyType
impl Eq for TokenSupplyType
impl StructuralPartialEq for TokenSupplyType
Auto Trait Implementations§
impl Freeze for TokenSupplyType
impl RefUnwindSafe for TokenSupplyType
impl Send for TokenSupplyType
impl Sync for TokenSupplyType
impl Unpin for TokenSupplyType
impl UnwindSafe for TokenSupplyType
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