pub enum FeatureProposal {
Uninitialized,
Pending(AcceptanceCriteria),
Accepted {
tokens_upon_acceptance: u64,
},
Expired,
}Expand description
Contents of a Feature Proposal account
Variants§
Uninitialized
Default account state after creating it
Pending(AcceptanceCriteria)
Feature proposal is now pending
Accepted
Feature proposal was accepted and the feature is now active
Fields
Expired
Feature proposal was not accepted before the deadline
Trait Implementations§
source§impl BorshDeserialize for FeatureProposal
impl BorshDeserialize for FeatureProposal
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSchema for FeatureProposal
impl BorshSchema for FeatureProposal
source§fn declaration() -> Declaration
fn declaration() -> Declaration
Get the name of the type without brackets.
source§fn add_definitions_recursively(
definitions: &mut BTreeMap<Declaration, Definition>
)
fn add_definitions_recursively( definitions: &mut BTreeMap<Declaration, Definition> )
Recursively, using DFS, add type definitions required for this type.
Type definition partially explains how to serialize/deserialize a type.
source§impl BorshSerialize for FeatureProposal
impl BorshSerialize for FeatureProposal
source§impl Clone for FeatureProposal
impl Clone for FeatureProposal
source§fn clone(&self) -> FeatureProposal
fn clone(&self) -> FeatureProposal
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FeatureProposal
impl Debug for FeatureProposal
source§impl EnumExt for FeatureProposal
impl EnumExt for FeatureProposal
source§impl Pack for FeatureProposal
impl Pack for FeatureProposal
source§fn get_packed_len() -> usize
fn get_packed_len() -> usize
Get the packed length
source§fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
Unpack from slice without checking if initialized
source§impl PartialEq for FeatureProposal
impl PartialEq for FeatureProposal
source§fn eq(&self, other: &FeatureProposal) -> bool
fn eq(&self, other: &FeatureProposal) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Sealed for FeatureProposal
impl StructuralPartialEq for FeatureProposal
Auto Trait Implementations§
impl Freeze for FeatureProposal
impl RefUnwindSafe for FeatureProposal
impl Send for FeatureProposal
impl Sync for FeatureProposal
impl Unpin for FeatureProposal
impl UnwindSafe for FeatureProposal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more