[][src]Struct solana_libra_types::access_path::AccessPath

pub struct AccessPath {
    pub address: AccountAddress,
    pub path: Vec<u8>,
}

Fields

address: AccountAddresspath: Vec<u8>

Methods

impl AccessPath[src]

pub fn new(address: AccountAddress, path: Vec<u8>) -> Self[src]

pub fn new_for_account(address: AccountAddress) -> Self[src]

Given an address, returns the corresponding access path that stores the Account resource.

pub fn new_for_event(address: AccountAddress, root: &[u8], key: &[u8]) -> Self[src]

Create an AccessPath for a ContractEvent. That is an AccessPah that uniquely identifies a given event for a published resource.

pub fn new_for_sent_event(address: AccountAddress) -> Self[src]

Create an AccessPath to the event for the sender account in a deposit operation. The sent counter in LibraAccount.T (LibraAccount.T.sent_events_count) is used to generate the AccessPath. That AccessPath can be used as a key into the event storage to retrieve all sent events for a given account.

pub fn new_for_received_event(address: AccountAddress) -> Self[src]

Create an AccessPath to the event for the target account (the receiver) in a deposit operation. The received counter in LibraAccount.T (LibraAccount.T.received_events_count) is used to generate the AccessPath. That AccessPath can be used as a key into the event storage to retrieve all received events for a given account.

pub fn resource_access_vec(tag: &StructTag, accesses: &Accesses) -> Vec<u8>[src]

pub fn resource_access_path(
    key: &ResourceKey,
    accesses: &Accesses
) -> AccessPath
[src]

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[src]

Trait Implementations

impl CanonicalDeserialize for AccessPath[src]

impl CanonicalSerialize for AccessPath[src]

impl Clone for AccessPath[src]

impl Debug for AccessPath[src]

impl Default for AccessPath[src]

impl<'de> Deserialize<'de> for AccessPath[src]

impl Display for AccessPath[src]

impl Eq for AccessPath[src]

impl<'a> From<&'a ModuleId> for AccessPath[src]

impl From<AccessPath> for AccessPath[src]

impl Hash for AccessPath[src]

impl Ord for AccessPath[src]

impl PartialEq<AccessPath> for AccessPath[src]

impl PartialOrd<AccessPath> for AccessPath[src]

impl Serialize for AccessPath[src]

impl StructuralEq for AccessPath[src]

impl StructuralPartialEq for AccessPath[src]

impl TryFrom<AccessPath> for AccessPath[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,