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
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 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.
Source§fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition>,
)
fn add_definition( declaration: String, definition: Definition, definitions: &mut HashMap<String, Definition>, )
Helper method to add a single type definition to the map.
fn schema_container() -> BorshSchemaContainer
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 duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more