#[repr(u8)]pub enum VelocityHint {
Unspecified = 0,
Seldom = 15,
Episodic = 31,
Regular = 63,
Frequent = 127,
HighFrequency = 255,
}
Variants§
Unspecified = 0
Seldom = 15
Should be used for thinks like secondary issuance for tokens which do not inflate very often.
Episodic = 31
Should be used for digital identity revocations.
Regular = 63
Should be used for digital art, shares, bonds etc.
Frequent = 127
Should be used for fungible tokens.
HighFrequency = 255
Should be used for stablecoins and money.
Implementations§
Source§impl VelocityHint
impl VelocityHint
pub fn with_value(value: &u8) -> Self
Trait Implementations§
Source§impl Clone for VelocityHint
impl Clone for VelocityHint
Source§fn clone(&self) -> VelocityHint
fn clone(&self) -> VelocityHint
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 VelocityHint
impl Debug for VelocityHint
Source§impl Default for VelocityHint
impl Default for VelocityHint
Source§fn default() -> VelocityHint
fn default() -> VelocityHint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VelocityHint
impl<'de> Deserialize<'de> for VelocityHint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VelocityHint
impl Display for VelocityHint
Source§impl From<VelocityHint> for u8
impl From<VelocityHint> for u8
Source§fn from(value: VelocityHint) -> u8
fn from(value: VelocityHint) -> u8
Converts to this type from the input type.
Source§impl Hash for VelocityHint
impl Hash for VelocityHint
Source§impl Ord for VelocityHint
impl Ord for VelocityHint
Source§fn cmp(&self, other: &VelocityHint) -> Ordering
fn cmp(&self, other: &VelocityHint) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VelocityHint
impl PartialEq for VelocityHint
Source§impl PartialOrd for VelocityHint
impl PartialOrd for VelocityHint
Source§impl Serialize for VelocityHint
impl Serialize for VelocityHint
Source§impl StrictDecode for VelocityHint
impl StrictDecode for VelocityHint
fn strict_decode(reader: &mut impl TypedRead) -> Result<Self, DecodeError>
fn strict_read(lim: usize, reader: impl Read) -> Result<Self, DecodeError>
Source§impl StrictEncode for VelocityHint
impl StrictEncode for VelocityHint
fn strict_encode<W: TypedWrite>(&self, writer: W) -> Result<W>
fn strict_write(&self, lim: usize, writer: impl Write) -> Result<usize, Error>
Source§impl StrictEnum for VelocityHint
impl StrictEnum for VelocityHint
fn from_variant_name(name: &FieldName) -> Result<Self, VariantError<&FieldName>>
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictSum for VelocityHint
impl StrictSum for VelocityHint
const ALL_VARIANTS: &'static [(u8, &'static str)]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<FieldName>
fn variant_ord(&self) -> u8
Source§impl StrictType for VelocityHint
impl StrictType for VelocityHint
const STRICT_LIB_NAME: &'static str = LIB_NAME_RGB_STD
fn strict_name() -> Option<TypeName>
Source§impl TryFrom<u8> for VelocityHint
impl TryFrom<u8> for VelocityHint
impl Copy for VelocityHint
impl Eq for VelocityHint
impl StructuralPartialEq for VelocityHint
Auto Trait Implementations§
impl Freeze for VelocityHint
impl RefUnwindSafe for VelocityHint
impl Send for VelocityHint
impl Sync for VelocityHint
impl Unpin for VelocityHint
impl UnwindSafe for VelocityHint
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.