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
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.