Struct spl_governance::state::legacy::SignatoryRecordV1
source · [−]#[repr(C)]pub struct SignatoryRecordV1 {
pub account_type: GovernanceAccountType,
pub proposal: Pubkey,
pub signatory: Pubkey,
pub signed_off: bool,
}
Expand description
Account PDA seeds: [‘governance’, proposal, signatory]
Fields
account_type: GovernanceAccountType
Governance account type
proposal: Pubkey
Proposal the signatory is assigned for
signatory: Pubkey
The account of the signatory who can sign off the proposal
signed_off: bool
Indicates whether the signatory signed off the proposal
Trait Implementations
sourceimpl BorshDeserialize for SignatoryRecordV1 where
GovernanceAccountType: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
impl BorshDeserialize for SignatoryRecordV1 where
GovernanceAccountType: BorshDeserialize,
Pubkey: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
sourceimpl BorshSchema for SignatoryRecordV1 where
GovernanceAccountType: BorshSchema,
Pubkey: BorshSchema,
Pubkey: BorshSchema,
bool: BorshSchema,
impl BorshSchema for SignatoryRecordV1 where
GovernanceAccountType: BorshSchema,
Pubkey: BorshSchema,
Pubkey: 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 SignatoryRecordV1 where
GovernanceAccountType: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
bool: BorshSerialize,
impl BorshSerialize for SignatoryRecordV1 where
GovernanceAccountType: BorshSerialize,
Pubkey: BorshSerialize,
Pubkey: BorshSerialize,
bool: BorshSerialize,
sourceimpl Clone for SignatoryRecordV1
impl Clone for SignatoryRecordV1
sourcefn clone(&self) -> SignatoryRecordV1
fn clone(&self) -> SignatoryRecordV1
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 SignatoryRecordV1
impl Debug for SignatoryRecordV1
sourceimpl IsInitialized for SignatoryRecordV1
impl IsInitialized for SignatoryRecordV1
sourcefn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Is initialized
sourceimpl PartialEq<SignatoryRecordV1> for SignatoryRecordV1
impl PartialEq<SignatoryRecordV1> for SignatoryRecordV1
sourcefn eq(&self, other: &SignatoryRecordV1) -> bool
fn eq(&self, other: &SignatoryRecordV1) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SignatoryRecordV1) -> bool
fn ne(&self, other: &SignatoryRecordV1) -> bool
This method tests for !=
.
impl StructuralPartialEq for SignatoryRecordV1
Auto Trait Implementations
impl RefUnwindSafe for SignatoryRecordV1
impl Send for SignatoryRecordV1
impl Sync for SignatoryRecordV1
impl Unpin for SignatoryRecordV1
impl UnwindSafe for SignatoryRecordV1
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