pub struct AccessPath {
pub address: AccountAddress,
pub path: Vec<u8>,
}Fields§
§address: AccountAddress§path: Vec<u8>Implementations§
Source§impl AccessPath
impl AccessPath
pub fn new(address: AccountAddress, path: Vec<u8>) -> Self
pub fn resource_access_vec(tag: StructTag) -> Vec<u8> ⓘ
Sourcepub fn resource_access_path(key: ResourceKey) -> AccessPath
pub fn resource_access_path(key: ResourceKey) -> AccessPath
Convert Accesses into a byte offset which would be used by the storage layer to resolve where fields are stored.
pub fn code_access_path(key: ModuleId) -> AccessPath
Sourcepub fn get_struct_tag(&self) -> Option<StructTag>
pub fn get_struct_tag(&self) -> Option<StructTag>
Extract a StructTag from self. Returns Some if this is a resource access
path and None otherwise
Trait Implementations§
Source§impl Clone for AccessPath
impl Clone for AccessPath
Source§fn clone(&self) -> AccessPath
fn clone(&self) -> AccessPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AccessPath
impl Debug for AccessPath
Source§impl<'de> Deserialize<'de> for AccessPath
impl<'de> Deserialize<'de> for AccessPath
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 AccessPath
impl Display for AccessPath
impl Eq for AccessPath
Source§impl From<&ModuleId> for AccessPath
impl From<&ModuleId> for AccessPath
Source§fn from(id: &ModuleId) -> AccessPath
fn from(id: &ModuleId) -> AccessPath
Converts to this type from the input type.
Source§impl Hash for AccessPath
impl Hash for AccessPath
Source§impl Ord for AccessPath
impl Ord for AccessPath
Source§fn cmp(&self, other: &AccessPath) -> Ordering
fn cmp(&self, other: &AccessPath) -> Ordering
1.21.0 (const: unstable) · 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 AccessPath
impl PartialEq for AccessPath
Source§impl PartialOrd for AccessPath
impl PartialOrd for AccessPath
Source§impl Serialize for AccessPath
impl Serialize for AccessPath
impl StructuralPartialEq for AccessPath
Auto Trait Implementations§
impl Freeze for AccessPath
impl RefUnwindSafe for AccessPath
impl Send for AccessPath
impl Sync for AccessPath
impl Unpin for AccessPath
impl UnsafeUnpin for AccessPath
impl UnwindSafe for AccessPath
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> TestOnlyHash for T
impl<T> TestOnlyHash for T
Source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.