pub struct CompressedAccountMetaReadOnly {
pub tree_info: PackedStateTreeInfo,
pub address: [u8; 32],
}Fields§
§tree_info: PackedStateTreeInfoState Merkle tree context.
address: [u8; 32]Address.
Trait Implementations§
Source§impl BorshDeserialize for CompressedAccountMetaReadOnly
impl BorshDeserialize for CompressedAccountMetaReadOnly
fn deserialize_reader<R>(
reader: &mut R,
) -> Result<CompressedAccountMetaReadOnly, Error>where
R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Clone for CompressedAccountMetaReadOnly
impl Clone for CompressedAccountMetaReadOnly
Source§fn clone(&self) -> CompressedAccountMetaReadOnly
fn clone(&self) -> CompressedAccountMetaReadOnly
Returns a duplicate 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 CompressedAccountMetaTrait for CompressedAccountMetaReadOnly
impl CompressedAccountMetaTrait for CompressedAccountMetaReadOnly
fn get_tree_info(&self) -> &PackedStateTreeInfo
fn get_lamports(&self) -> Option<u64>
fn get_root_index(&self) -> Option<u16>
fn get_address(&self) -> Option<[u8; 32]>
fn get_output_state_tree_index(&self) -> Option<u8>
Source§impl Default for CompressedAccountMetaReadOnly
impl Default for CompressedAccountMetaReadOnly
Source§fn default() -> CompressedAccountMetaReadOnly
fn default() -> CompressedAccountMetaReadOnly
Returns the “default value” for a type. Read more
Source§impl PartialEq for CompressedAccountMetaReadOnly
impl PartialEq for CompressedAccountMetaReadOnly
Source§fn eq(&self, other: &CompressedAccountMetaReadOnly) -> bool
fn eq(&self, other: &CompressedAccountMetaReadOnly) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CompressedAccountMetaReadOnly
impl StructuralPartialEq for CompressedAccountMetaReadOnly
Auto Trait Implementations§
impl Freeze for CompressedAccountMetaReadOnly
impl RefUnwindSafe for CompressedAccountMetaReadOnly
impl Send for CompressedAccountMetaReadOnly
impl Sync for CompressedAccountMetaReadOnly
impl Unpin for CompressedAccountMetaReadOnly
impl UnwindSafe for CompressedAccountMetaReadOnly
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