pub enum SubstateKey {
Field(u8),
Map(Vec<u8>),
Sorted(([u8; 2], Vec<u8>)),
}
Expand description
The unique identifier of a substate within a node module.
Variants§
Implementations§
Source§impl SubstateKey
impl SubstateKey
Trait Implementations§
Source§impl<X> Categorize<X> for SubstateKeywhere
X: CustomValueKind,
impl<X> Categorize<X> for SubstateKeywhere
X: CustomValueKind,
fn value_kind() -> ValueKind<X>
Source§impl Clone for SubstateKey
impl Clone for SubstateKey
Source§fn clone(&self) -> SubstateKey
fn clone(&self) -> SubstateKey
Returns a duplicate 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 SubstateKey
impl Debug for SubstateKey
Source§impl<D, X> Decode<X, D> for SubstateKeywhere
D: Decoder<X>,
X: CustomValueKind,
impl<D, X> Decode<X, D> for SubstateKeywhere
D: Decoder<X>,
X: CustomValueKind,
Source§fn decode_body_with_value_kind(
decoder: &mut D,
value_kind: ValueKind<X>,
) -> Result<SubstateKey, DecodeError>
fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<X>, ) -> Result<SubstateKey, DecodeError>
Decodes the type from the decoder, which should match a preloaded value kind. Read more
Source§impl<C> Describe<C> for SubstateKeywhere
C: CustomTypeKind<RustTypeId>,
impl<C> Describe<C> for SubstateKeywhere
C: CustomTypeKind<RustTypeId>,
Source§const TYPE_ID: RustTypeId
const TYPE_ID: RustTypeId
The
TYPE_ID
should give a unique identifier for its SBOR schema type.
An SBOR schema type capture details about the SBOR payload, how it should be interpreted, validated and displayed. Read moreSource§fn type_data() -> TypeData<C, RustTypeId>
fn type_data() -> TypeData<C, RustTypeId>
Returns the local schema for the given type. Read more
Source§fn add_all_dependencies(aggregator: &mut TypeAggregator<C>)
fn add_all_dependencies(aggregator: &mut TypeAggregator<C>)
For each type referenced in
get_local_type_data
, we need to ensure that the type and all of its own references
get added to the aggregator. Read moreSource§impl<E, X> Encode<X, E> for SubstateKeywhere
E: Encoder<X>,
X: CustomValueKind,
impl<E, X> Encode<X, E> for SubstateKeywhere
E: Encoder<X>,
X: CustomValueKind,
Source§fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
Encodes the SBOR value’s kind to the encoder
Source§fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
Encodes the SBOR body of the type to the encoder. Read more
Source§impl From<AuthZoneField> for SubstateKey
impl From<AuthZoneField> for SubstateKey
Source§fn from(value: AuthZoneField) -> Self
fn from(value: AuthZoneField) -> Self
Converts to this type from the input type.
Source§impl From<BootLoaderField> for SubstateKey
impl From<BootLoaderField> for SubstateKey
Source§fn from(value: BootLoaderField) -> Self
fn from(value: BootLoaderField) -> Self
Converts to this type from the input type.
Source§impl From<ComponentField> for SubstateKey
impl From<ComponentField> for SubstateKey
Source§fn from(value: ComponentField) -> Self
fn from(value: ComponentField) -> Self
Converts to this type from the input type.
Source§impl From<FungibleBucketField> for SubstateKey
impl From<FungibleBucketField> for SubstateKey
Source§fn from(value: FungibleBucketField) -> Self
fn from(value: FungibleBucketField) -> Self
Converts to this type from the input type.
Source§impl From<FungibleProofField> for SubstateKey
impl From<FungibleProofField> for SubstateKey
Source§fn from(value: FungibleProofField) -> Self
fn from(value: FungibleProofField) -> Self
Converts to this type from the input type.
Source§impl From<NonFungibleBucketField> for SubstateKey
impl From<NonFungibleBucketField> for SubstateKey
Source§fn from(value: NonFungibleBucketField) -> Self
fn from(value: NonFungibleBucketField) -> Self
Converts to this type from the input type.
Source§impl From<NonFungibleProofField> for SubstateKey
impl From<NonFungibleProofField> for SubstateKey
Source§fn from(value: NonFungibleProofField) -> Self
fn from(value: NonFungibleProofField) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolUpdateStatusField> for SubstateKey
impl From<ProtocolUpdateStatusField> for SubstateKey
Source§fn from(value: ProtocolUpdateStatusField) -> Self
fn from(value: ProtocolUpdateStatusField) -> Self
Converts to this type from the input type.
Source§impl From<RoyaltyField> for SubstateKey
impl From<RoyaltyField> for SubstateKey
Source§fn from(value: RoyaltyField) -> Self
fn from(value: RoyaltyField) -> Self
Converts to this type from the input type.
Source§impl From<TransactionTrackerField> for SubstateKey
impl From<TransactionTrackerField> for SubstateKey
Source§fn from(value: TransactionTrackerField) -> Self
fn from(value: TransactionTrackerField) -> Self
Converts to this type from the input type.
Source§impl From<TypeInfoField> for SubstateKey
impl From<TypeInfoField> for SubstateKey
Source§fn from(value: TypeInfoField) -> Self
fn from(value: TypeInfoField) -> Self
Converts to this type from the input type.
Source§impl From<WorktopField> for SubstateKey
impl From<WorktopField> for SubstateKey
Source§fn from(value: WorktopField) -> Self
fn from(value: WorktopField) -> Self
Converts to this type from the input type.
Source§impl Hash for SubstateKey
impl Hash for SubstateKey
Source§impl Ord for SubstateKey
impl Ord for SubstateKey
Source§fn cmp(&self, other: &SubstateKey) -> Ordering
fn cmp(&self, other: &SubstateKey) -> 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 SubstateKey
impl PartialEq for SubstateKey
Source§impl PartialOrd for SubstateKey
impl PartialOrd for SubstateKey
Source§impl<'a> ResolvableSubstateKey<'a> for &'a SubstateKey
impl<'a> ResolvableSubstateKey<'a> for &'a SubstateKey
fn into_substate_key_or_ref(self) -> SubstateKeyOrRef<'a>
fn into_substate_key(self) -> SubstateKey
Source§impl<X> SborEnum<X> for SubstateKeywhere
X: CustomValueKind,
impl<X> SborEnum<X> for SubstateKeywhere
X: CustomValueKind,
fn get_discriminator(&self) -> u8
fn get_length(&self) -> usize
Source§impl TryFrom<&SubstateKey> for AuthZoneField
impl TryFrom<&SubstateKey> for AuthZoneField
Source§impl TryFrom<&SubstateKey> for BootLoaderField
impl TryFrom<&SubstateKey> for BootLoaderField
Source§impl TryFrom<&SubstateKey> for ComponentField
impl TryFrom<&SubstateKey> for ComponentField
Source§impl TryFrom<&SubstateKey> for FungibleBucketField
impl TryFrom<&SubstateKey> for FungibleBucketField
Source§impl TryFrom<&SubstateKey> for FungibleProofField
impl TryFrom<&SubstateKey> for FungibleProofField
Source§impl TryFrom<&SubstateKey> for NonFungibleBucketField
impl TryFrom<&SubstateKey> for NonFungibleBucketField
Source§impl TryFrom<&SubstateKey> for NonFungibleProofField
impl TryFrom<&SubstateKey> for NonFungibleProofField
Source§impl TryFrom<&SubstateKey> for ProtocolUpdateStatusField
impl TryFrom<&SubstateKey> for ProtocolUpdateStatusField
Source§impl TryFrom<&SubstateKey> for RoyaltyField
impl TryFrom<&SubstateKey> for RoyaltyField
Source§impl TryFrom<&SubstateKey> for TransactionTrackerField
impl TryFrom<&SubstateKey> for TransactionTrackerField
Source§impl TryFrom<&SubstateKey> for TypeInfoField
impl TryFrom<&SubstateKey> for TypeInfoField
Source§impl TryFrom<&SubstateKey> for WorktopField
impl TryFrom<&SubstateKey> for WorktopField
impl Eq for SubstateKey
impl StructuralPartialEq for SubstateKey
Auto Trait Implementations§
impl Freeze for SubstateKey
impl RefUnwindSafe for SubstateKey
impl Send for SubstateKey
impl Sync for SubstateKey
impl Unpin for SubstateKey
impl UnwindSafe for SubstateKey
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<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
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.