Struct spl_governance::state::program_metadata::ProgramMetadata
source · [−]#[repr(C)]pub struct ProgramMetadata {
pub account_type: GovernanceAccountType,
pub updated_at: Slot,
pub version: String,
pub reserved: [u8; 64],
}
Expand description
Program metadata account. It stores information about the particular SPL-Governance program instance
Fields
account_type: GovernanceAccountType
Governance account type
updated_at: Slot
The slot when the metadata was captured
version: String
The version of the program Max 11 characters XXX.YYY.ZZZ
reserved: [u8; 64]
Reserved
Trait Implementations
Returns max account size or None if max size is not known and actual instance size should be used
impl BorshSchema for ProgramMetadata where
GovernanceAccountType: BorshSchema,
Slot: BorshSchema,
String: BorshSchema,
[u8; 64]: BorshSchema,
impl BorshSchema for ProgramMetadata where
GovernanceAccountType: BorshSchema,
Slot: BorshSchema,
String: BorshSchema,
[u8; 64]: BorshSchema,
Get the name of the type without brackets.
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
fn 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.
Is initialized
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ProgramMetadata
impl Send for ProgramMetadata
impl Sync for ProgramMetadata
impl Unpin for ProgramMetadata
impl UnwindSafe for ProgramMetadata
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more