Trait spaces_rpc::SpacesApi[][src]

pub trait SpacesApi<BlockHash, AccountId, BlockNumber>: Sized + Send + Sync + 'static {
    fn get_spaces(
        &self,
        at: Option<BlockHash>,
        start_id: u64,
        limit: u64
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>>>;
fn get_spaces_by_ids(
        &self,
        at: Option<BlockHash>,
        space_ids: Vec<SpaceId>
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>>>;
fn get_public_spaces(
        &self,
        at: Option<BlockHash>,
        start_id: u64,
        limit: u64
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>>>;
fn get_unlisted_spaces(
        &self,
        at: Option<BlockHash>,
        start_id: u64,
        limit: u64
    ) -> Result<Vec<FlatSpace<AccountId, BlockNumber>>>;
fn get_space_id_by_handle(
        &self,
        at: Option<BlockHash>,
        handle: Vec<u8>
    ) -> Result<Option<SpaceId>>;
fn get_space_by_handle(
        &self,
        at: Option<BlockHash>,
        handle: Vec<u8>
    ) -> Result<Option<FlatSpace<AccountId, BlockNumber>>>;
fn get_public_space_ids_by_owner(
        &self,
        at: Option<BlockHash>,
        owner: AccountId
    ) -> Result<Vec<SpaceId>>;
fn get_unlisted_space_ids_by_owner(
        &self,
        at: Option<BlockHash>,
        owner: AccountId
    ) -> Result<Vec<SpaceId>>;
fn get_next_space_id(&self, at: Option<BlockHash>) -> Result<SpaceId>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
    where
        BlockHash: Send + Sync + 'static + DeserializeOwned,
        AccountId: Send + Sync + 'static + Serialize + DeserializeOwned,
        BlockNumber: Send + Sync + 'static + Serialize
, { ... } }

Required methods

fn get_spaces(
    &self,
    at: Option<BlockHash>,
    start_id: u64,
    limit: u64
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>>>
[src]

fn get_spaces_by_ids(
    &self,
    at: Option<BlockHash>,
    space_ids: Vec<SpaceId>
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>>>
[src]

fn get_public_spaces(
    &self,
    at: Option<BlockHash>,
    start_id: u64,
    limit: u64
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>>>
[src]

fn get_unlisted_spaces(
    &self,
    at: Option<BlockHash>,
    start_id: u64,
    limit: u64
) -> Result<Vec<FlatSpace<AccountId, BlockNumber>>>
[src]

fn get_space_id_by_handle(
    &self,
    at: Option<BlockHash>,
    handle: Vec<u8>
) -> Result<Option<SpaceId>>
[src]

fn get_space_by_handle(
    &self,
    at: Option<BlockHash>,
    handle: Vec<u8>
) -> Result<Option<FlatSpace<AccountId, BlockNumber>>>
[src]

fn get_public_space_ids_by_owner(
    &self,
    at: Option<BlockHash>,
    owner: AccountId
) -> Result<Vec<SpaceId>>
[src]

fn get_unlisted_space_ids_by_owner(
    &self,
    at: Option<BlockHash>,
    owner: AccountId
) -> Result<Vec<SpaceId>>
[src]

fn get_next_space_id(&self, at: Option<BlockHash>) -> Result<SpaceId>[src]

Loading content...

Provided methods

fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> where
    BlockHash: Send + Sync + 'static + DeserializeOwned,
    AccountId: Send + Sync + 'static + Serialize + DeserializeOwned,
    BlockNumber: Send + Sync + 'static + Serialize
[src]

Create an IoDelegate, wiring rpc calls to the trait methods.

Loading content...

Implementors

impl<C, Block, AccountId, BlockNumber> SpacesApi<<Block as Block>::Hash, AccountId, BlockNumber> for Spaces<C, Block> where
    Block: BlockT,
    AccountId: Codec,
    BlockNumber: Codec,
    C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
    C::Api: SpacesRuntimeApi<Block, AccountId, BlockNumber>, 
[src]

Loading content...