Struct govern::ProposalInstruction
source · [−]pub struct ProposalInstruction {
pub program_id: Pubkey,
pub keys: Vec<ProposalAccountMeta>,
pub data: Vec<u8>,
}Expand description
Instruction.
Fields
program_id: PubkeyPubkey of the instruction processor that executes this instruction
keys: Vec<ProposalAccountMeta>Metadata for what accounts should be passed to the instruction processor
data: Vec<u8>Opaque data passed to the instruction processor
Implementations
Space that a ProposalInstruction takes up.
Trait Implementations
impl BorshDeserialize for ProposalInstruction where
Pubkey: BorshDeserialize,
Vec<ProposalAccountMeta>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
impl BorshDeserialize for ProposalInstruction where
Pubkey: BorshDeserialize,
Vec<ProposalAccountMeta>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
impl BorshSerialize for ProposalInstruction where
Pubkey: BorshSerialize,
Vec<ProposalAccountMeta>: BorshSerialize,
Vec<u8>: BorshSerialize,
impl BorshSerialize for ProposalInstruction where
Pubkey: BorshSerialize,
Vec<ProposalAccountMeta>: BorshSerialize,
Vec<u8>: BorshSerialize,
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ProposalInstruction
impl Send for ProposalInstruction
impl Sync for ProposalInstruction
impl Unpin for ProposalInstruction
impl UnwindSafe for ProposalInstruction
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more