pub struct IdlInstruction {
pub name: String,
pub discriminator: Vec<u8>,
pub discriminant: Option<SteelDiscriminant>,
pub docs: Vec<String>,
pub accounts: Vec<IdlAccountArg>,
pub args: Vec<IdlField>,
}Fields§
§name: String§discriminator: Vec<u8>Anchor-style discriminator: 8-byte array
discriminant: Option<SteelDiscriminant>Steel-style discriminant: {“type”: “u8”, “value”: N}
docs: Vec<String>§accounts: Vec<IdlAccountArg>§args: Vec<IdlField>Implementations§
Source§impl IdlInstruction
impl IdlInstruction
pub fn get_discriminator(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for IdlInstruction
impl Clone for IdlInstruction
Source§fn clone(&self) -> IdlInstruction
fn clone(&self) -> IdlInstruction
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 IdlInstruction
impl Debug for IdlInstruction
Source§impl<'de> Deserialize<'de> for IdlInstruction
impl<'de> Deserialize<'de> for IdlInstruction
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
Auto Trait Implementations§
impl Freeze for IdlInstruction
impl RefUnwindSafe for IdlInstruction
impl Send for IdlInstruction
impl Sync for IdlInstruction
impl Unpin for IdlInstruction
impl UnsafeUnpin for IdlInstruction
impl UnwindSafe for IdlInstruction
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