pub struct AcctState {
pub address: Vec<u8>,
pub lamports: u64,
pub data: Vec<u8>,
pub executable: bool,
pub rent_epoch: u64,
pub owner: Vec<u8>,
pub seed_addr: Option<SeedAddress>,
}
Expand description
The complete state of an account excluding its public key.
Fields§
§address: Vec<u8>
The account address. (32 bytes)
lamports: u64
§data: Vec<u8>
Account data is limited to 10 MiB on Solana mainnet as of 2024-Feb.
executable: bool
§rent_epoch: u64
The rent epoch is deprecated on Solana mainnet as of 2024-Feb. If ommitted, implies a value of UINT64_MAX.
owner: Vec<u8>
Address of the program that owns this account. (32 bytes)
seed_addr: Option<SeedAddress>
The account address, but derived as a seed address. Overrides
address
if present.
TODO: This is a solfuzz specific extension and is not compliant
with the org.solana.sealevel.v1 API.
Trait Implementations§
Source§impl Message for AcctState
impl Message for AcctState
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.impl StructuralPartialEq for AcctState
Auto Trait Implementations§
impl Freeze for AcctState
impl RefUnwindSafe for AcctState
impl Send for AcctState
impl Sync for AcctState
impl Unpin for AcctState
impl UnwindSafe for AcctState
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