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§
Sourcefn restricted_entity(caller: &OriginCaller) -> Option<Self>
fn restricted_entity(caller: &OriginCaller) -> Option<Self>
Whether the origin is restricted, and what entity it belongs to.
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.