Struct smart_wallet::TXInstruction
source · [−]pub struct TXInstruction {
pub program_id: Pubkey,
pub keys: Vec<TXAccountMeta>,
pub data: Vec<u8>,
}Expand description
Instruction.
Fields
program_id: PubkeyPubkey of the instruction processor that executes this instruction
keys: Vec<TXAccountMeta>Metadata for what accounts should be passed to the instruction processor
data: Vec<u8>Opaque data passed to the instruction processor
Implementations
sourceimpl TXInstruction
impl TXInstruction
sourcepub fn space(&self) -> usize
pub fn space(&self) -> usize
Space that a TXInstruction takes up.
Trait Implementations
sourceimpl BorshDeserialize for TXInstruction where
Pubkey: BorshDeserialize,
Vec<TXAccountMeta>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
impl BorshDeserialize for TXInstruction where
Pubkey: BorshDeserialize,
Vec<TXAccountMeta>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
sourceimpl BorshSerialize for TXInstruction where
Pubkey: BorshSerialize,
Vec<TXAccountMeta>: BorshSerialize,
Vec<u8>: BorshSerialize,
impl BorshSerialize for TXInstruction where
Pubkey: BorshSerialize,
Vec<TXAccountMeta>: BorshSerialize,
Vec<u8>: BorshSerialize,
sourceimpl Clone for TXInstruction
impl Clone for TXInstruction
sourcefn clone(&self) -> TXInstruction
fn clone(&self) -> TXInstruction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TXInstruction
impl Debug for TXInstruction
sourceimpl Default for TXInstruction
impl Default for TXInstruction
sourcefn default() -> TXInstruction
fn default() -> TXInstruction
Returns the “default value” for a type. Read more
sourceimpl From<&'_ TXInstruction> for Instruction
impl From<&'_ TXInstruction> for Instruction
sourcefn from(tx: &TXInstruction) -> Instruction
fn from(tx: &TXInstruction) -> Instruction
Performs the conversion.
sourceimpl PartialEq<TXInstruction> for TXInstruction
impl PartialEq<TXInstruction> for TXInstruction
sourcefn eq(&self, other: &TXInstruction) -> bool
fn eq(&self, other: &TXInstruction) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TXInstruction) -> bool
fn ne(&self, other: &TXInstruction) -> bool
This method tests for !=.
impl StructuralPartialEq for TXInstruction
Auto Trait Implementations
impl RefUnwindSafe for TXInstruction
impl Send for TXInstruction
impl Sync for TXInstruction
impl Unpin for TXInstruction
impl UnwindSafe for TXInstruction
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more