Struct solana_runtime::append_vec::StoredAccountMeta
source · [−]pub struct StoredAccountMeta<'a> {
pub meta: &'a StoredMeta,
pub account_meta: &'a AccountMeta,
pub data: &'a [u8],
pub offset: usize,
pub stored_size: usize,
pub hash: &'a Hash,
}
Expand description
References to account data stored elsewhere. Getting an Account
requires cloning
(see StoredAccountMeta::clone_account()
).
Fields
meta: &'a StoredMeta
account_meta: &'a AccountMeta
account data
data: &'a [u8]
offset: usize
stored_size: usize
hash: &'a Hash
Implementations
sourceimpl<'a> StoredAccountMeta<'a>
impl<'a> StoredAccountMeta<'a>
sourcepub fn clone_account(&self) -> AccountSharedData
pub fn clone_account(&self) -> AccountSharedData
Return a new Account by copying all the data referenced by the StoredAccountMeta
.
Trait Implementations
sourceimpl<'a> Debug for StoredAccountMeta<'a>
impl<'a> Debug for StoredAccountMeta<'a>
sourceimpl<'a> PartialEq<StoredAccountMeta<'a>> for StoredAccountMeta<'a>
impl<'a> PartialEq<StoredAccountMeta<'a>> for StoredAccountMeta<'a>
sourcefn eq(&self, other: &StoredAccountMeta<'a>) -> bool
fn eq(&self, other: &StoredAccountMeta<'a>) -> bool
sourceimpl<'a> ReadableAccount for StoredAccountMeta<'a>
impl<'a> ReadableAccount for StoredAccountMeta<'a>
sourceimpl<'a> ZeroLamport for StoredAccountMeta<'a>
impl<'a> ZeroLamport for StoredAccountMeta<'a>
fn is_zero_lamport(&self) -> bool
impl<'a> StructuralPartialEq for StoredAccountMeta<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for StoredAccountMeta<'a>
impl<'a> Send for StoredAccountMeta<'a>
impl<'a> Sync for StoredAccountMeta<'a>
impl<'a> Unpin for StoredAccountMeta<'a>
impl<'a> UnwindSafe for StoredAccountMeta<'a>
Blanket Implementations
sourceimpl<T> AbiExample for T
impl<T> AbiExample for T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more