referrerpolicy=no-referrer-when-downgrade

Trait frame_support::traits::MaybeConsideration

source ·
pub trait MaybeConsideration<AccountId, Footprint>: Consideration<AccountId, Footprint> {
    // Required method
    fn is_none(&self) -> bool;
}
Expand description

An extension of the Consideration trait that allows for the management of tickets that may represent no cost. While the MaybeConsideration still requires proper handling, it introduces the ability to determine if a ticket represents no cost and can be safely forgotten without any side effects.

Required Methods§

source

fn is_none(&self) -> bool

Returns true if this Consideration represents a no-cost ticket and can be forgotten without any side effects.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<A, F> MaybeConsideration<A, F> for ()

source§

fn is_none(&self) -> bool

Implementors§

source§

impl<A: 'static + Eq, F: 'static + MutateFreeze<A> + Mutate<A>, R: 'static + Get<F::Id>, D: 'static + Convert<Fp, F::Balance>, Fp: 'static> MaybeConsideration<A, Fp> for FreezeConsideration<A, F, R, D, Fp>

source§

impl<A: 'static + Eq, F: 'static + MutateHold<A> + Mutate<A>, R: 'static + Get<F::Reason>, D: 'static + Convert<Fp, F::Balance>, Fp: 'static> MaybeConsideration<A, Fp> for HoldConsideration<A, F, R, D, Fp>