Trait spaces_rpc::SpacesRuntimeApi[][src]

pub trait SpacesRuntimeApi<Block, AccountId, BlockNumber>: Core<Block> where
    Block: Block,
    AccountId: Codec,
    BlockNumber: Codec
{ pub fn get_next_space_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<u64, Self::Error> { ... }
pub fn get_next_space_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<u64, Self::Error> { ... }
pub fn get_spaces(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        start_id: u64,
        limit: u64
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_spaces_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        start_id: u64,
        limit: u64
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_spaces_by_ids(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        space_ids: Vec<u64, Global>
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_spaces_by_ids_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        space_ids: Vec<u64, Global>
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_public_spaces(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        start_id: u64,
        limit: u64
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_public_spaces_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        start_id: u64,
        limit: u64
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_unlisted_spaces(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        start_id: u64,
        limit: u64
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_unlisted_spaces_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        start_id: u64,
        limit: u64
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_public_space_ids_by_owner(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        owner: AccountId
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_public_space_ids_by_owner_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        owner: AccountId
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_unlisted_space_ids_by_owner(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        owner: AccountId
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_unlisted_space_ids_by_owner_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        owner: AccountId
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_space_by_handle(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        handle: Vec<u8, Global>
    ) -> Result<Option<FlatSpace<AccountId, BlockNumber>>, Self::Error> { ... }
pub fn get_space_by_handle_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        handle: Vec<u8, Global>
    ) -> Result<Option<FlatSpace<AccountId, BlockNumber>>, Self::Error> { ... }
pub fn get_space_id_by_handle(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        handle: Vec<u8, Global>
    ) -> Result<Option<u64>, Self::Error> { ... }
pub fn get_space_id_by_handle_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        handle: Vec<u8, Global>
    ) -> Result<Option<u64>, Self::Error> { ... } }

Provided methods

pub fn get_next_space_id(
    &self,
    __runtime_api_at_param__: &BlockId<Block>
) -> Result<u64, Self::Error>
[src]

pub fn get_next_space_id_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext
) -> Result<u64, Self::Error>
[src]

pub fn get_spaces(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    start_id: u64,
    limit: u64
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_spaces_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    start_id: u64,
    limit: u64
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_spaces_by_ids(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    space_ids: Vec<u64, Global>
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_spaces_by_ids_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    space_ids: Vec<u64, Global>
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_public_spaces(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    start_id: u64,
    limit: u64
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_public_spaces_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    start_id: u64,
    limit: u64
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_unlisted_spaces(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    start_id: u64,
    limit: u64
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_unlisted_spaces_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    start_id: u64,
    limit: u64
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_public_space_ids_by_owner(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    owner: AccountId
) -> Result<Vec<u64, Global>, Self::Error>
[src]

pub fn get_public_space_ids_by_owner_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    owner: AccountId
) -> Result<Vec<u64, Global>, Self::Error>
[src]

pub fn get_unlisted_space_ids_by_owner(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    owner: AccountId
) -> Result<Vec<u64, Global>, Self::Error>
[src]

pub fn get_unlisted_space_ids_by_owner_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    owner: AccountId
) -> Result<Vec<u64, Global>, Self::Error>
[src]

pub fn get_space_by_handle(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    handle: Vec<u8, Global>
) -> Result<Option<FlatSpace<AccountId, BlockNumber>>, Self::Error>
[src]

pub fn get_space_by_handle_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    handle: Vec<u8, Global>
) -> Result<Option<FlatSpace<AccountId, BlockNumber>>, Self::Error>
[src]

pub fn get_space_id_by_handle(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    handle: Vec<u8, Global>
) -> Result<Option<u64>, Self::Error>
[src]

pub fn get_space_id_by_handle_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    handle: Vec<u8, Global>
) -> Result<Option<u64>, Self::Error>
[src]

Loading content...

Trait Implementations

impl<Block, AccountId, BlockNumber, __Sr_Api_Error__> RuntimeApiInfo for dyn SpacesApi<Block, AccountId, BlockNumber, Error = __Sr_Api_Error__> + 'static where
    Block: Block
[src]

Implementors

Loading content...