pub struct InstructionFixture {
pub scenario: String,
pub program_id: String,
pub data: String,
pub accounts: Vec<AccountFixture>,
}Expand description
A single instruction to execute against the program under test.
Fields§
§scenario: StringThe scenario name this instruction measures (keys it to a [scenario.<name>]).
program_id: StringThe program’s base58 address.
data: StringHex-encoded instruction data (empty string for a no-arg instruction).
accounts: Vec<AccountFixture>Accounts passed to the instruction, in order.
Trait Implementations§
Source§impl Clone for InstructionFixture
impl Clone for InstructionFixture
Source§fn clone(&self) -> InstructionFixture
fn clone(&self) -> InstructionFixture
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstructionFixture
impl Debug for InstructionFixture
Source§impl<'de> Deserialize<'de> for InstructionFixture
impl<'de> Deserialize<'de> for InstructionFixture
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InstructionFixture
Source§impl PartialEq for InstructionFixture
impl PartialEq for InstructionFixture
Source§fn eq(&self, other: &InstructionFixture) -> bool
fn eq(&self, other: &InstructionFixture) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InstructionFixture
impl Serialize for InstructionFixture
impl StructuralPartialEq for InstructionFixture
Auto Trait Implementations§
impl Freeze for InstructionFixture
impl RefUnwindSafe for InstructionFixture
impl Send for InstructionFixture
impl Sync for InstructionFixture
impl Unpin for InstructionFixture
impl UnsafeUnpin for InstructionFixture
impl UnwindSafe for InstructionFixture
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