pub enum DictionaryItemStrParams<'a> {
AccountNamedKey {
account_hash: &'a str,
dictionary_name: &'a str,
dictionary_item_key: &'a str,
},
ContractNamedKey {
hash_addr: &'a str,
dictionary_name: &'a str,
dictionary_item_key: &'a str,
},
EntityNamedKey {
entity_addr: &'a str,
dictionary_name: &'a str,
dictionary_item_key: &'a str,
},
URef {
seed_uref: &'a str,
dictionary_item_key: &'a str,
},
Dictionary(&'a str),
}Expand description
Various ways of uniquely identifying a dictionary item.
Variants§
AccountNamedKey
A dictionary item identified via an Account’s named keys.
Fields
§
account_hash: &'a strThe AccountHash as a formatted string, identifying the account whose named keys
contains dictionary_name.
ContractNamedKey
A dictionary item identified via a Contract’s named keys.
Fields
EntityNamedKey
A dictionary item identified via a casper_types::AddressableEntity’s named keys.
Fields
§
entity_addr: &'a strThe casper_types::EntityAddr as a formatted string, identifying the entity whose named keys
contains dictionary_name.
URef
A dictionary item identified via its seed URef.
Fields
Dictionary(&'a str)
A dictionary item identified via its unique address derived from the dictionary’s seed
URef and the item’s key within the dictionary. The key must be a Key::Dictionary
variant as a formatted string.
Trait Implementations§
Source§impl<'a> TryFrom<DictionaryItemStrParams<'a>> for DictionaryItemIdentifier
impl<'a> TryFrom<DictionaryItemStrParams<'a>> for DictionaryItemIdentifier
Auto Trait Implementations§
impl<'a> Freeze for DictionaryItemStrParams<'a>
impl<'a> RefUnwindSafe for DictionaryItemStrParams<'a>
impl<'a> Send for DictionaryItemStrParams<'a>
impl<'a> Sync for DictionaryItemStrParams<'a>
impl<'a> Unpin for DictionaryItemStrParams<'a>
impl<'a> UnwindSafe for DictionaryItemStrParams<'a>
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> 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more