#[repr(C)]pub struct AccountMeta {
pub pubkey: Pubkey,
pub is_signer: bool,
pub is_writable: bool,
}Expand description
Contains metadata for a single account read or written to by a program during instruction execution.
See [solana_instruction::AccountMeta] for more information.
Fields§
§pubkey: PubkeyThe account’s public key.
When serialized, encoded to a field named “p” for space efficiency.
is_signer: boolTrue if an instruction requires a transaction signature matching this account’s pubkey.
When serialized, encoded to a field named “s” for space efficiency.
is_writable: boolTrue if the account data or metadata may be mutated during program execution.
When serialized, encoded to a field named “w” for space efficiency.
Implementations§
Trait Implementations§
Source§impl Clone for AccountMeta
impl Clone for AccountMeta
Source§impl Debug for AccountMeta
impl Debug for AccountMeta
Source§impl Default for AccountMeta
impl Default for AccountMeta
Source§impl<'de> Deserialize<'de> for AccountMeta
impl<'de> Deserialize<'de> for AccountMeta
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
impl Eq for AccountMeta
Source§impl From<AccountMeta> for AccountMeta
Available on crate feature solana-instruction-convert-v2 only.
impl From<AccountMeta> for AccountMeta
Available on crate feature
solana-instruction-convert-v2 only.Source§fn from(value: AccountMeta) -> Self
fn from(value: AccountMeta) -> Self
Converts to this type from the input type.
Source§impl From<AccountMeta> for AccountMeta
Available on crate feature solana-instruction-convert-v2 only.
impl From<AccountMeta> for AccountMeta
Available on crate feature
solana-instruction-convert-v2 only.Source§fn from(value: AccountMeta) -> Self
fn from(value: AccountMeta) -> Self
Converts to this type from the input type.
Source§impl From<AccountMeta> for AccountMeta
Available on crate feature solana-instruction-convert-v3 only.
impl From<AccountMeta> for AccountMeta
Available on crate feature
solana-instruction-convert-v3 only.Source§fn from(value: AccountMeta) -> Self
fn from(value: AccountMeta) -> Self
Converts to this type from the input type.
Source§impl From<AccountMeta> for AccountMeta
Available on crate feature solana-instruction-convert-v3 only.
impl From<AccountMeta> for AccountMeta
Available on crate feature
solana-instruction-convert-v3 only.Source§fn from(value: AccountMeta) -> Self
fn from(value: AccountMeta) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AccountMeta
impl PartialEq for AccountMeta
Source§impl Serialize for AccountMeta
impl Serialize for AccountMeta
impl StructuralPartialEq for AccountMeta
Auto Trait Implementations§
impl Freeze for AccountMeta
impl RefUnwindSafe for AccountMeta
impl Send for AccountMeta
impl Sync for AccountMeta
impl Unpin for AccountMeta
impl UnsafeUnpin for AccountMeta
impl UnwindSafe for AccountMeta
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