Struct govern::ProposalMeta
source · [−]Expand description
Metadata about a proposal.
Fields
proposal: PubkeyThe Proposal.
title: StringTitle of the proposal.
description_link: StringLink to a description of the proposal.
Trait Implementations
sourceimpl AccountDeserialize for ProposalMeta
impl AccountDeserialize for ProposalMeta
sourcefn try_deserialize(buf: &mut &[u8]) -> Result<Self, ProgramError>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self, ProgramError>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a Mint account into a token
Account. Read more
sourceimpl AccountSerialize for ProposalMeta
impl AccountSerialize for ProposalMeta
sourceimpl BorshDeserialize for ProposalMeta where
Pubkey: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
impl BorshDeserialize for ProposalMeta where
Pubkey: BorshDeserialize,
String: BorshDeserialize,
String: BorshDeserialize,
sourceimpl BorshSerialize for ProposalMeta where
Pubkey: BorshSerialize,
String: BorshSerialize,
String: BorshSerialize,
impl BorshSerialize for ProposalMeta where
Pubkey: BorshSerialize,
String: BorshSerialize,
String: BorshSerialize,
sourceimpl Clone for ProposalMeta
impl Clone for ProposalMeta
sourcefn clone(&self) -> ProposalMeta
fn clone(&self) -> ProposalMeta
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 ProposalMeta
impl Debug for ProposalMeta
sourceimpl Default for ProposalMeta
impl Default for ProposalMeta
sourcefn default() -> ProposalMeta
fn default() -> ProposalMeta
Returns the “default value” for a type. Read more
sourceimpl Discriminator for ProposalMeta
impl Discriminator for ProposalMeta
fn discriminator() -> [u8; 8]
sourceimpl Owner for ProposalMeta
impl Owner for ProposalMeta
Auto Trait Implementations
impl RefUnwindSafe for ProposalMeta
impl Send for ProposalMeta
impl Sync for ProposalMeta
impl Unpin for ProposalMeta
impl UnwindSafe for ProposalMeta
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