Struct spl_governance::state::proposal_transaction::AccountMetaData
source · [−]#[repr(C)]pub struct AccountMetaData {
pub pubkey: Pubkey,
pub is_signer: bool,
pub is_writable: bool,
}
Expand description
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.
Trait Implementations
sourceimpl BorshDeserialize for AccountMetaData where
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
impl BorshDeserialize for AccountMetaData where
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
sourceimpl BorshSchema for AccountMetaData where
Pubkey: BorshSchema,
bool: BorshSchema,
bool: BorshSchema,
impl BorshSchema for AccountMetaData where
Pubkey: BorshSchema,
bool: BorshSchema,
bool: BorshSchema,
sourcefn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
sourcefn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
Recursively, using DFS, add type definitions required for this type. For primitive types this is an empty map. Type definition explains how to serialize/deserialize a type. Read more
sourcefn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
sourceimpl BorshSerialize for AccountMetaData where
Pubkey: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
impl BorshSerialize for AccountMetaData where
Pubkey: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
sourceimpl Clone for AccountMetaData
impl Clone for AccountMetaData
sourcefn clone(&self) -> AccountMetaData
fn clone(&self) -> AccountMetaData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccountMetaData
impl Debug for AccountMetaData
sourceimpl PartialEq<AccountMetaData> for AccountMetaData
impl PartialEq<AccountMetaData> for AccountMetaData
sourcefn eq(&self, other: &AccountMetaData) -> bool
fn eq(&self, other: &AccountMetaData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AccountMetaData) -> bool
fn ne(&self, other: &AccountMetaData) -> bool
This method tests for !=
.
impl StructuralPartialEq for AccountMetaData
Auto Trait Implementations
impl RefUnwindSafe for AccountMetaData
impl Send for AccountMetaData
impl Sync for AccountMetaData
impl Unpin for AccountMetaData
impl UnwindSafe for AccountMetaData
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more