pub struct InstructionArgDef {
pub name: String,
pub arg_type: String,
pub docs: Vec<String>,
}Expand description
Argument definition for an instruction.
Fields§
§name: StringArgument name
arg_type: StringType from IDL (e.g., “u64”, “bool”, “pubkey”, “Option
docs: Vec<String>Documentation from IDL
Trait Implementations§
Source§impl Clone for InstructionArgDef
impl Clone for InstructionArgDef
Source§fn clone(&self) -> InstructionArgDef
fn clone(&self) -> InstructionArgDef
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 InstructionArgDef
impl Debug for InstructionArgDef
Source§impl<'de> Deserialize<'de> for InstructionArgDef
impl<'de> Deserialize<'de> for InstructionArgDef
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
Source§impl PartialEq for InstructionArgDef
impl PartialEq for InstructionArgDef
Source§impl Serialize for InstructionArgDef
impl Serialize for InstructionArgDef
impl StructuralPartialEq for InstructionArgDef
Auto Trait Implementations§
impl Freeze for InstructionArgDef
impl RefUnwindSafe for InstructionArgDef
impl Send for InstructionArgDef
impl Sync for InstructionArgDef
impl Unpin for InstructionArgDef
impl UnsafeUnpin for InstructionArgDef
impl UnwindSafe for InstructionArgDef
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