Struct move_core_types::language_storage::ResourceKey
source · pub struct ResourceKey {
pub address: AccountAddress,
pub type_: StructTag,
}
Expand description
Represents the intitial key into global storage where we first index by the address, and then the struct tag
Fields§
§address: AccountAddress
§type_: StructTag
Implementations§
source§impl ResourceKey
impl ResourceKey
source§impl ResourceKey
impl ResourceKey
pub fn new(address: AccountAddress, type_: StructTag) -> Self
Trait Implementations§
source§impl Clone for ResourceKey
impl Clone for ResourceKey
source§fn clone(&self) -> ResourceKey
fn clone(&self) -> ResourceKey
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 ResourceKey
impl Debug for ResourceKey
source§impl<'de> Deserialize<'de> for ResourceKey
impl<'de> Deserialize<'de> for ResourceKey
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 ResourceKey
impl Display for ResourceKey
source§impl Hash for ResourceKey
impl Hash for ResourceKey
source§impl Ord for ResourceKey
impl Ord for ResourceKey
source§fn cmp(&self, other: &ResourceKey) -> Ordering
fn cmp(&self, other: &ResourceKey) -> 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<ResourceKey> for ResourceKey
impl PartialEq<ResourceKey> for ResourceKey
source§fn eq(&self, other: &ResourceKey) -> bool
fn eq(&self, other: &ResourceKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResourceKey> for ResourceKey
impl PartialOrd<ResourceKey> for ResourceKey
source§fn partial_cmp(&self, other: &ResourceKey) -> Option<Ordering>
fn partial_cmp(&self, other: &ResourceKey) -> 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 more