pub struct SolanaInstructionWithValue {
pub name: String,
pub discriminator: Vec<f64>,
pub accounts: Vec<SolAccountWithValue>,
pub args: Vec<SolParameterWithValue>,
}Fields§
§name: StringThe name of the instruction
discriminator: Vec<f64>The discriminator for the instruction. Acts as a function selector
accounts: Vec<SolAccountWithValue>§args: Vec<SolParameterWithValue>The arguments of the instruction
Implementations§
Source§impl SolanaInstructionWithValue
impl SolanaInstructionWithValue
pub fn new( name: String, discriminator: Vec<f64>, accounts: Vec<SolAccountWithValue>, args: Vec<SolParameterWithValue>, ) -> SolanaInstructionWithValue
Trait Implementations§
Source§impl Clone for SolanaInstructionWithValue
impl Clone for SolanaInstructionWithValue
Source§fn clone(&self) -> SolanaInstructionWithValue
fn clone(&self) -> SolanaInstructionWithValue
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 SolanaInstructionWithValue
impl Debug for SolanaInstructionWithValue
Source§impl Default for SolanaInstructionWithValue
impl Default for SolanaInstructionWithValue
Source§fn default() -> SolanaInstructionWithValue
fn default() -> SolanaInstructionWithValue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SolanaInstructionWithValue
impl<'de> Deserialize<'de> for SolanaInstructionWithValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SolanaInstructionWithValue
Auto Trait Implementations§
impl Freeze for SolanaInstructionWithValue
impl RefUnwindSafe for SolanaInstructionWithValue
impl Send for SolanaInstructionWithValue
impl Sync for SolanaInstructionWithValue
impl Unpin for SolanaInstructionWithValue
impl UnwindSafe for SolanaInstructionWithValue
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