[][src]Trait sunshine_util::traits::SubSupervisorKeyManagement

pub trait SubSupervisorKeyManagement<AccountId> {
    fn is_sub_organization_supervisor(
        uuid: u32,
        uuid2: u32,
        who: &AccountId
    ) -> bool;
fn set_sub_supervisor(
        uuid: u32,
        uuid2: u32,
        supervisor: AccountId
    ) -> DispatchResult;
fn swap_sub_supervisor(
        uuid: u32,
        uuid2: u32,
        old_key: AccountId,
        new_key: AccountId
    ) -> Result<AccountId, DispatchError>; }

Required methods

fn is_sub_organization_supervisor(
    uuid: u32,
    uuid2: u32,
    who: &AccountId
) -> bool

fn set_sub_supervisor(
    uuid: u32,
    uuid2: u32,
    supervisor: AccountId
) -> DispatchResult

fn swap_sub_supervisor(
    uuid: u32,
    uuid2: u32,
    old_key: AccountId,
    new_key: AccountId
) -> Result<AccountId, DispatchError>

Loading content...

Implementors

Loading content...