pub struct IdlInstructionsItem {
pub accounts: Vec<IdlInstructionsItemAccountsItem>,
pub args: Vec<IdlInstructionsItemArgsItem>,
pub discriminator: [u8; 8],
pub name: String,
}
Expand description
IdlInstructionsItem
JSON schema
{
"type": "object",
"required": [
"args",
"discriminator",
"name"
],
"properties": {
"accounts": {
"description": "Optional list of accounts required by the instruction.",
"type": "array",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"description": "The account name.",
"examples": [
"mint"
],
"type": "string"
},
"signer": {
"description": "Whether the account must be a signer.",
"examples": [
false
],
"type": "boolean"
},
"writable": {
"description": "Whether the account is writable.",
"examples": [
true
],
"type": "boolean"
}
}
}
},
"args": {
"description": "List of instruction arguments.",
"type": "array",
"items": {
"type": "object",
"required": [
"name",
"type"
],
"properties": {
"name": {
"description": "The argument name.",
"examples": [
"amount"
],
"type": "string"
},
"type": {
"description": "The argument type.",
"examples": [
"u64"
],
"type": "string"
}
}
}
},
"discriminator": {
"description": "Array of 8 numbers representing the instruction discriminator.",
"examples": [
[
119,
250,
202,
24,
253,
135,
244,
121
]
],
"type": "array",
"items": {
"type": "integer",
"maximum": 255.0,
"minimum": 0.0
},
"maxItems": 8,
"minItems": 8
},
"name": {
"description": "The instruction name.",
"examples": [
"transfer_checked"
],
"type": "string"
}
}
}
Fields§
§accounts: Vec<IdlInstructionsItemAccountsItem>
Optional list of accounts required by the instruction.
args: Vec<IdlInstructionsItemArgsItem>
List of instruction arguments.
discriminator: [u8; 8]
Array of 8 numbers representing the instruction discriminator.
name: String
The instruction name.
Implementations§
Source§impl IdlInstructionsItem
impl IdlInstructionsItem
pub fn builder() -> IdlInstructionsItem
Trait Implementations§
Source§impl Clone for IdlInstructionsItem
impl Clone for IdlInstructionsItem
Source§fn clone(&self) -> IdlInstructionsItem
fn clone(&self) -> IdlInstructionsItem
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 IdlInstructionsItem
impl Debug for IdlInstructionsItem
Source§impl<'de> Deserialize<'de> for IdlInstructionsItem
impl<'de> Deserialize<'de> for IdlInstructionsItem
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 From<&IdlInstructionsItem> for IdlInstructionsItem
impl From<&IdlInstructionsItem> for IdlInstructionsItem
Source§fn from(value: &IdlInstructionsItem) -> Self
fn from(value: &IdlInstructionsItem) -> Self
Converts to this type from the input type.
Source§impl From<IdlInstructionsItem> for IdlInstructionsItem
impl From<IdlInstructionsItem> for IdlInstructionsItem
Source§fn from(value: IdlInstructionsItem) -> Self
fn from(value: IdlInstructionsItem) -> Self
Converts to this type from the input type.
Source§impl Serialize for IdlInstructionsItem
impl Serialize for IdlInstructionsItem
Source§impl TryFrom<IdlInstructionsItem> for IdlInstructionsItem
impl TryFrom<IdlInstructionsItem> for IdlInstructionsItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: IdlInstructionsItem) -> Result<Self, ConversionError>
fn try_from(value: IdlInstructionsItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for IdlInstructionsItem
impl RefUnwindSafe for IdlInstructionsItem
impl Send for IdlInstructionsItem
impl Sync for IdlInstructionsItem
impl Unpin for IdlInstructionsItem
impl UnwindSafe for IdlInstructionsItem
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