pub struct SerializableInstruction {
pub program_id: Pubkey,
pub accounts: Vec<SerializableAccountMeta>,
pub data: Vec<u8>,
}Expand description
Serializable version of Solana’s Instruction for easier handling
Fields§
§program_id: Pubkey§accounts: Vec<SerializableAccountMeta>§data: Vec<u8>Trait Implementations§
Source§impl BorshDeserialize for SerializableInstruction
impl BorshDeserialize for SerializableInstruction
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Clone for SerializableInstruction
impl Clone for SerializableInstruction
Source§fn clone(&self) -> SerializableInstruction
fn clone(&self) -> SerializableInstruction
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 SerializableInstruction
impl Debug for SerializableInstruction
Source§impl From<Instruction> for SerializableInstruction
impl From<Instruction> for SerializableInstruction
Source§fn from(ix: Instruction) -> Self
fn from(ix: Instruction) -> Self
Converts to this type from the input type.
Source§impl From<SerializableInstruction> for Instruction
impl From<SerializableInstruction> for Instruction
Source§fn from(ix: SerializableInstruction) -> Self
fn from(ix: SerializableInstruction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SerializableInstruction
impl RefUnwindSafe for SerializableInstruction
impl Send for SerializableInstruction
impl Sync for SerializableInstruction
impl Unpin for SerializableInstruction
impl UnsafeUnpin for SerializableInstruction
impl UnwindSafe for SerializableInstruction
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