referrerpolicy=no-referrer-when-downgrade

Trait RestrictedEntity

Source
pub trait RestrictedEntity<OriginCaller, Balance>: Sized {
    // Required methods
    fn allowance(&self) -> Allowance<Balance>;
    fn restricted_entity(caller: &OriginCaller) -> Option<Self>;
    fn benchmarked_restricted_origin() -> OriginCaller;
}
Expand description

The restriction of an entity.

Required Methods§

Source

fn allowance(&self) -> Allowance<Balance>

The allowance given for the entity.

Source

fn restricted_entity(caller: &OriginCaller) -> Option<Self>

Whether the origin is restricted, and what entity it belongs to.

Source

fn benchmarked_restricted_origin() -> OriginCaller

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§