[−][src]Struct solana_libra_types::access_path::AccessPath
Fields
address: AccountAddress
path: 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]
key: &ResourceKey,
accesses: &Accesses
) -> 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
[src]
Trait Implementations
impl CanonicalDeserialize for AccessPath
[src]
fn deserialize(deserializer: &mut impl CanonicalDeserializer) -> Result<Self>
[src]
impl CanonicalSerialize for AccessPath
[src]
fn serialize(&self, serializer: &mut impl CanonicalSerializer) -> Result<()>
[src]
impl Clone for AccessPath
[src]
fn clone(&self) -> AccessPath
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AccessPath
[src]
impl Default for AccessPath
[src]
fn default() -> AccessPath
[src]
impl<'de> Deserialize<'de> for AccessPath
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for AccessPath
[src]
impl Eq for AccessPath
[src]
impl<'a> From<&'a ModuleId> for AccessPath
[src]
impl From<AccessPath> for AccessPath
[src]
fn from(path: AccessPath) -> Self
[src]
impl Hash for AccessPath
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for AccessPath
[src]
fn cmp(&self, other: &AccessPath) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<AccessPath> for AccessPath
[src]
fn eq(&self, other: &AccessPath) -> bool
[src]
fn ne(&self, other: &AccessPath) -> bool
[src]
impl PartialOrd<AccessPath> for AccessPath
[src]
fn partial_cmp(&self, other: &AccessPath) -> Option<Ordering>
[src]
fn lt(&self, other: &AccessPath) -> bool
[src]
fn le(&self, other: &AccessPath) -> bool
[src]
fn gt(&self, other: &AccessPath) -> bool
[src]
fn ge(&self, other: &AccessPath) -> bool
[src]
impl Serialize for AccessPath
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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.
fn try_from(proto: AccessPath) -> Result<Self>
[src]
Auto Trait Implementations
impl RefUnwindSafe for AccessPath
impl Send for AccessPath
impl Sync for AccessPath
impl Unpin for AccessPath
impl UnwindSafe for AccessPath
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn test_only_hash(&self) -> HashValue
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,