referrerpolicy=no-referrer-when-downgrade

Trait polkadot_sdk_frame::traits::MaybeConsideration

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§

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§

§

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

§

fn is_none(&self) -> bool

Implementors§

§

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

§

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