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

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.

Implementations

impl AccountMeta[src]

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

pub fn new_readonly(pubkey: Pubkey, is_signer: bool) -> AccountMeta[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

impl RefUnwindSafe for AccountMeta

impl Send for AccountMeta

impl Sync for AccountMeta

impl Unpin for AccountMeta

impl UnwindSafe for AccountMeta

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: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> MaybeDebug for T where
    T: Debug
[src]

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

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.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]