Struct spl_governance::state::native_treasury::NativeTreasury
source · [−]pub struct NativeTreasury {}
Expand description
Treasury account The account has no data and can be used as a payer for instruction signed by Governance PDAs or as a native SOL treasury
Trait Implementations
Returns max account size or None if max size is not known and actual instance size should be used
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.
Auto Trait Implementations
impl RefUnwindSafe for NativeTreasury
impl Send for NativeTreasury
impl Sync for NativeTreasury
impl Unpin for NativeTreasury
impl UnwindSafe for NativeTreasury
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more