pub struct IdlInstructionSnapshot {
pub name: String,
pub discriminator: Vec<u8>,
pub docs: Vec<String>,
pub accounts: Vec<IdlInstructionAccountSnapshot>,
pub args: Vec<IdlFieldSnapshot>,
}Expand description
Instruction definition from IDL
Fields§
§name: StringInstruction name (e.g., “buy”, “sell”, “create”)
discriminator: Vec<u8>8-byte discriminator
docs: Vec<String>Documentation
accounts: Vec<IdlInstructionAccountSnapshot>Account arguments
args: Vec<IdlFieldSnapshot>Data arguments
Trait Implementations§
Source§impl Clone for IdlInstructionSnapshot
impl Clone for IdlInstructionSnapshot
Source§fn clone(&self) -> IdlInstructionSnapshot
fn clone(&self) -> IdlInstructionSnapshot
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 moreSource§impl Debug for IdlInstructionSnapshot
impl Debug for IdlInstructionSnapshot
Source§impl<'de> Deserialize<'de> for IdlInstructionSnapshot
impl<'de> Deserialize<'de> for IdlInstructionSnapshot
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
Auto Trait Implementations§
impl Freeze for IdlInstructionSnapshot
impl RefUnwindSafe for IdlInstructionSnapshot
impl Send for IdlInstructionSnapshot
impl Sync for IdlInstructionSnapshot
impl Unpin for IdlInstructionSnapshot
impl UnwindSafe for IdlInstructionSnapshot
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