[][src]Struct solana_sdk::instruction::AccountMeta

pub struct AccountMeta {
    pub pubkey: Pubkey,
    pub is_signer: bool,
    pub is_writable: bool,
}

Account metadata used to define Instructions

Fields

pubkey: Pubkey

An account's public key

is_signer: bool

True if an Instruction requires a Transaction signature matching pubkey.

is_writable: bool

True if the pubkey can be loaded as a read-write account.

Methods

impl AccountMeta[src]

pub fn new(pubkey: Pubkey, is_signer: bool) -> Self[src]

pub fn new_readonly(pubkey: Pubkey, is_signer: bool) -> Self[src]

Trait Implementations

impl Clone for AccountMeta[src]

impl Debug for AccountMeta[src]

impl<'de> Deserialize<'de> for AccountMeta[src]

impl PartialEq<AccountMeta> for AccountMeta[src]

impl Serialize for AccountMeta[src]

impl StructuralPartialEq for AccountMeta[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.