pub struct AccountOverrides {
pub slot_history: Option<AccountSharedData>,
}
Expand description
Encapsulates overridden accounts, typically used for transaction simulations
Fields§
§slot_history: Option<AccountSharedData>
Implementations§
source§impl 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§
source§impl Default for AccountOverrides
impl Default for AccountOverrides
source§fn default() -> AccountOverrides
fn default() -> AccountOverrides
Returns the “default value” for a type. Read more