[][src]Struct spl_feature_proposal::state::AcceptanceCriteria

pub struct AcceptanceCriteria {
    pub tokens_required: u64,
    pub deadline: UnixTimestamp,
}

Criteria for accepting a feature proposal

Fields

tokens_required: u64

The balance of the feature proposal's token account must be greater than this amount, and tallied before the deadline for the feature to be accepted.

deadline: UnixTimestamp

If the required tokens are not tallied by this deadline then the proposal will expire.

Trait Implementations

impl BorshDeserialize for AcceptanceCriteria where
    u64: BorshDeserialize,
    UnixTimestamp: BorshDeserialize
[src]

impl BorshSchema for AcceptanceCriteria where
    u64: BorshSchema,
    UnixTimestamp: BorshSchema
[src]

impl BorshSerialize for AcceptanceCriteria where
    u64: BorshSerialize,
    UnixTimestamp: BorshSerialize
[src]

impl Clone for AcceptanceCriteria[src]

impl Debug for AcceptanceCriteria[src]

impl PartialEq<AcceptanceCriteria> for AcceptanceCriteria[src]

impl StructuralPartialEq for AcceptanceCriteria[src]

Auto Trait Implementations

Blanket Implementations

impl<T> AbiExample for T

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,