Struct solana_runtime::account_overrides::AccountOverrides
source · [−]pub struct AccountOverrides {
pub slot_history: Option<AccountSharedData>,
}
Expand description
Encapsulates overridden accounts, typically used for transaction simulations
Fields
slot_history: Option<AccountSharedData>
Implementations
sourceimpl AccountOverrides
impl AccountOverrides
sourcepub fn set_slot_history(&mut self, slot_history: Option<AccountSharedData>)
pub fn set_slot_history(&mut self, slot_history: Option<AccountSharedData>)
Sets in the slot history
Note: no checks are performed on the correctness of the contained data
sourcepub fn get(&self, pubkey: &Pubkey) -> Option<&AccountSharedData>
pub fn get(&self, pubkey: &Pubkey) -> Option<&AccountSharedData>
Gets the account if it’s found in the list of overrides
Trait Implementations
sourceimpl Default for AccountOverrides
impl Default for AccountOverrides
sourcefn default() -> AccountOverrides
fn default() -> AccountOverrides
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AccountOverrides
impl Send for AccountOverrides
impl Sync for AccountOverrides
impl Unpin for AccountOverrides
impl UnwindSafe for AccountOverrides
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