pub struct AccountUpdate {
pub pubkey: Pubkey,
pub account: Account,
pub slot: u64,
}
Expand description
Represents an update to a Solana account, including its public key, data, and slot information.
The AccountUpdate
struct encapsulates the essential information for an
account update, containing the account’s pubkey
, account
data, and the
slot
at which the update occurred.
pubkey
: The public key of the account being updated.account
: The new state of the account.slot
: The slot number in which this account update was recorded.
Fields§
§pubkey: Pubkey
§account: Account
§slot: u64
Trait Implementations§
Source§impl Clone for AccountUpdate
impl Clone for AccountUpdate
Source§fn clone(&self) -> AccountUpdate
fn clone(&self) -> AccountUpdate
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 moreAuto Trait Implementations§
impl Freeze for AccountUpdate
impl RefUnwindSafe for AccountUpdate
impl Send for AccountUpdate
impl Sync for AccountUpdate
impl Unpin for AccountUpdate
impl UnwindSafe for AccountUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more