Enum rgbstd::interface::VelocityHint
source · #[repr(u8)]pub enum VelocityHint {
Unspecified,
Seldom,
Episodic,
Regular,
Frequent,
HighFrequency,
}
Variants§
Unspecified
Seldom
Should be used for thinks like secondary issuance for tokens which do not inflate very often.
Episodic
Should be used for digital identity revocations.
Regular
Should be used for digital art, shares, bonds etc.
Frequent
Should be used for fungible tokens.
HighFrequency
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<VelocityHint> for VelocityHint
impl PartialEq<VelocityHint> for VelocityHint
source§fn eq(&self, other: &VelocityHint) -> bool
fn eq(&self, other: &VelocityHint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<VelocityHint> for VelocityHint
impl PartialOrd<VelocityHint> for VelocityHint
source§fn partial_cmp(&self, other: &VelocityHint) -> Option<Ordering>
fn partial_cmp(&self, other: &VelocityHint) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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 StructuralEq for VelocityHint
impl StructuralPartialEq for VelocityHint
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.