#[repr(C)]pub struct CInstruction {
pub program_id: *const Pubkey,
pub accounts: *const CAccountMeta,
pub accounts_len: u64,
pub data: *const u8,
pub data_len: u64,
}Expand description
An Instruction as expected by sol_invoke_signed_c.
Fields§
§program_id: *const PubkeyPublic key of the program.
accounts: *const CAccountMetaAccounts expected by the program instruction.
accounts_len: u64Number of accounts expected by the program instruction.
data: *const u8Data expected by the program instruction.
data_len: u64Length of the data expected by the program instruction.
Trait Implementations§
Source§impl Clone for CInstruction
impl Clone for CInstruction
Source§fn clone(&self) -> CInstruction
fn clone(&self) -> CInstruction
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 CInstruction
impl Debug for CInstruction
Source§impl PartialEq for CInstruction
impl PartialEq for CInstruction
impl StructuralPartialEq for CInstruction
Auto Trait Implementations§
impl Freeze for CInstruction
impl RefUnwindSafe for CInstruction
impl !Send for CInstruction
impl !Sync for CInstruction
impl Unpin for CInstruction
impl UnwindSafe for CInstruction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more