pub struct IdlInstructionAccountSnapshot {
pub name: String,
pub writable: bool,
pub signer: bool,
pub optional: bool,
pub address: Option<String>,
pub docs: Vec<String>,
}Expand description
Account argument in an instruction
Fields§
§name: StringAccount name (e.g., “mint”, “user”)
writable: boolWhether this account is writable
signer: boolWhether this account is a signer
optional: boolOptional - if the account is optional
address: Option<String>Fixed address constraint (if any)
docs: Vec<String>Documentation
Trait Implementations§
Source§impl Clone for IdlInstructionAccountSnapshot
impl Clone for IdlInstructionAccountSnapshot
Source§fn clone(&self) -> IdlInstructionAccountSnapshot
fn clone(&self) -> IdlInstructionAccountSnapshot
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<'de> Deserialize<'de> for IdlInstructionAccountSnapshot
impl<'de> Deserialize<'de> for IdlInstructionAccountSnapshot
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 IdlInstructionAccountSnapshot
impl RefUnwindSafe for IdlInstructionAccountSnapshot
impl Send for IdlInstructionAccountSnapshot
impl Sync for IdlInstructionAccountSnapshot
impl Unpin for IdlInstructionAccountSnapshot
impl UnwindSafe for IdlInstructionAccountSnapshot
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