Trait roles_runtime_api::RolesApi[][src]

pub trait RolesApi<Block: BlockT, AccountId>: Core<Block> where
    AccountId: Codec
{ fn get_space_permissions_by_account(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        account: AccountId,
        space_id: SpaceId
    ) -> Result<Vec<SpacePermission>, Self::Error> { ... }
fn get_space_permissions_by_account_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        account: AccountId,
        space_id: SpaceId
    ) -> Result<Vec<SpacePermission>, Self::Error> { ... }
fn get_accounts_with_any_role_in_space(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        space_id: SpaceId
    ) -> Result<Vec<AccountId>, Self::Error> { ... }
fn get_accounts_with_any_role_in_space_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        space_id: SpaceId
    ) -> Result<Vec<AccountId>, Self::Error> { ... }
fn get_space_ids_for_account_with_any_role(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        account_id: AccountId
    ) -> Result<Vec<SpaceId>, Self::Error> { ... }
fn get_space_ids_for_account_with_any_role_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        account_id: AccountId
    ) -> Result<Vec<SpaceId>, Self::Error> { ... } }

Provided methods

fn get_space_permissions_by_account(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    account: AccountId,
    space_id: SpaceId
) -> Result<Vec<SpacePermission>, Self::Error>
[src]

fn get_space_permissions_by_account_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    account: AccountId,
    space_id: SpaceId
) -> Result<Vec<SpacePermission>, Self::Error>
[src]

fn get_accounts_with_any_role_in_space(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    space_id: SpaceId
) -> Result<Vec<AccountId>, Self::Error>
[src]

fn get_accounts_with_any_role_in_space_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    space_id: SpaceId
) -> Result<Vec<AccountId>, Self::Error>
[src]

fn get_space_ids_for_account_with_any_role(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    account_id: AccountId
) -> Result<Vec<SpaceId>, Self::Error>
[src]

fn get_space_ids_for_account_with_any_role_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    account_id: AccountId
) -> Result<Vec<SpaceId>, Self::Error>
[src]

Loading content...

Trait Implementations

impl<Block: BlockT, AccountId, __Sr_Api_Error__> RuntimeApiInfo for dyn RolesApi<Block, AccountId, Error = __Sr_Api_Error__>[src]

Implementors

Loading content...