pub trait InstructionData: Discriminator + BorshSerialize {
    // Provided method
    fn data(&self) -> Vec<u8>  { ... }
}
Expand description

Calculates the data for an instruction invocation, where the data is Sha256(<namespace>:<method_name>)[..8] || BorshSerialize(args). args is a borsh serialized struct of named fields for each argument given to an instruction.

Provided Methods§

fn data(&self) -> Vec<u8>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl InstructionData for AttestationPermissionInitParams

source§

impl InstructionData for AttestationPermissionSetParams

source§

impl InstructionData for AttestationQueueAddMrEnclaveParams

source§

impl InstructionData for AttestationQueueInitParams

source§

impl InstructionData for FunctionCloseParams

source§

impl InstructionData for FunctionInitParams

source§

impl InstructionData for FunctionSetConfigParams

source§

impl InstructionData for FunctionSetEscrowParams

source§

impl InstructionData for FunctionTriggerParams

source§

impl InstructionData for FunctionVerifyParams

source§

impl InstructionData for FunctionRequestCloseParams

source§

impl InstructionData for FunctionRequestInitParams

source§

impl InstructionData for FunctionRequestInitAndTriggerParams

source§

impl InstructionData for FunctionRequestSetConfigParams

source§

impl InstructionData for FunctionRequestTriggerParams

source§

impl InstructionData for FunctionRequestVerifyParams

source§

impl InstructionData for FunctionRoutineInitParams

source§

impl InstructionData for FunctionRoutineVerifyParams

source§

impl InstructionData for ServiceRequestQuoteVerifyParams

source§

impl InstructionData for FunctionServiceVerifyParams

source§

impl InstructionData for VerifierHeartbeatParams

source§

impl InstructionData for VerifierInitParams

source§

impl InstructionData for VerifierQuoteRotateParams

source§

impl InstructionData for VerifierQuoteVerifyParams

source§

impl InstructionData for WalletFundParams

source§

impl InstructionData for WalletInitParams

source§

impl InstructionData for WalletWithdrawParams