pub struct InstructionAccountDef {
pub name: String,
pub is_signer: bool,
pub is_writable: bool,
pub resolution: AccountResolution,
pub is_optional: bool,
pub docs: Vec<String>,
}Expand description
Account metadata for an instruction.
Fields§
§name: StringAccount name (e.g., “user”, “mint”, “bondingCurve”)
is_signer: boolWhether this account must sign the transaction
is_writable: boolWhether this account is writable
resolution: AccountResolutionHow this account’s address is resolved
is_optional: boolWhether this account can be omitted (optional accounts)
docs: Vec<String>Documentation from IDL
Trait Implementations§
Source§impl Clone for InstructionAccountDef
impl Clone for InstructionAccountDef
Source§fn clone(&self) -> InstructionAccountDef
fn clone(&self) -> InstructionAccountDef
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 InstructionAccountDef
impl Debug for InstructionAccountDef
Source§impl<'de> Deserialize<'de> for InstructionAccountDef
impl<'de> Deserialize<'de> for InstructionAccountDef
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 InstructionAccountDef
impl PartialEq for InstructionAccountDef
Source§impl Serialize for InstructionAccountDef
impl Serialize for InstructionAccountDef
impl StructuralPartialEq for InstructionAccountDef
Auto Trait Implementations§
impl Freeze for InstructionAccountDef
impl RefUnwindSafe for InstructionAccountDef
impl Send for InstructionAccountDef
impl Sync for InstructionAccountDef
impl Unpin for InstructionAccountDef
impl UnsafeUnpin for InstructionAccountDef
impl UnwindSafe for InstructionAccountDef
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