sp_domains

Trait DomainOwner

source
pub trait DomainOwner<AccountId> {
    // Required method
    fn is_domain_owner(domain_id: DomainId, acc: AccountId) -> bool;
}
Expand description

Trait to check domain owner.

Required Methods§

source

fn is_domain_owner(domain_id: DomainId, acc: AccountId) -> bool

Returns true if the account is the domain owner.

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.

Implementations on Foreign Types§

source§

impl<AccountId> DomainOwner<AccountId> for ()

source§

fn is_domain_owner(_domain_id: DomainId, _acc: AccountId) -> bool

Implementors§