[−][src]Struct spl_feature_proposal::state::AcceptanceCriteria
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]
u64: BorshDeserialize,
UnixTimestamp: BorshDeserialize,
pub fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
[src]
pub fn try_from_slice(v: &[u8]) -> Result<Self, Error>
[src]
pub fn is_u8() -> bool
[src]
impl BorshSchema for AcceptanceCriteria where
u64: BorshSchema,
UnixTimestamp: BorshSchema,
[src]
u64: BorshSchema,
UnixTimestamp: BorshSchema,
pub fn declaration() -> Declaration
[src]
pub fn add_definitions_recursively(
definitions: &mut HashMap<Declaration, Definition>
)
[src]
definitions: &mut HashMap<Declaration, Definition>
)
pub fn add_definition(
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
[src]
declaration: String,
definition: Definition,
definitions: &mut HashMap<String, Definition, RandomState>
)
pub fn schema_container() -> BorshSchemaContainer
[src]
impl BorshSerialize for AcceptanceCriteria where
u64: BorshSerialize,
UnixTimestamp: BorshSerialize,
[src]
u64: BorshSerialize,
UnixTimestamp: BorshSerialize,
pub fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>
[src]
pub fn try_to_vec(&self) -> Result<Vec<u8>, Error>
[src]
pub fn is_u8() -> bool
[src]
impl Clone for AcceptanceCriteria
[src]
pub fn clone(&self) -> AcceptanceCriteria
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AcceptanceCriteria
[src]
impl PartialEq<AcceptanceCriteria> for AcceptanceCriteria
[src]
pub fn eq(&self, other: &AcceptanceCriteria) -> bool
[src]
pub fn ne(&self, other: &AcceptanceCriteria) -> bool
[src]
impl StructuralPartialEq for AcceptanceCriteria
[src]
Auto Trait Implementations
impl RefUnwindSafe for AcceptanceCriteria
impl Send for AcceptanceCriteria
impl Sync for AcceptanceCriteria
impl Unpin for AcceptanceCriteria
impl UnwindSafe for AcceptanceCriteria
Blanket Implementations
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,