Trait space_follows_rpc::SpaceFollowsApi[][src]

pub trait SpaceFollowsApi<BlockHash, AccountId>: Sized + Send + Sync + 'static {
    fn get_space_ids_followed_by_account(
        &self,
        at: Option<BlockHash>,
        account: AccountId
    ) -> Result<Vec<SpaceId>>;
fn filter_followed_space_ids(
        &self,
        at: Option<BlockHash>,
        account: AccountId,
        space_ids: Vec<SpaceId>
    ) -> Result<Vec<SpaceId>>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>
    where
        BlockHash: Send + Sync + 'static + DeserializeOwned,
        AccountId: Send + Sync + 'static + DeserializeOwned
, { ... } }

Required methods

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

fn filter_followed_space_ids(
    &self,
    at: Option<BlockHash>,
    account: AccountId,
    space_ids: Vec<SpaceId>
) -> Result<Vec<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 + DeserializeOwned
[src]

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

Loading content...

Implementors

impl<C, Block, AccountId> SpaceFollowsApi<<Block as Block>::Hash, AccountId> for SpaceFollows<C, Block> where
    Block: BlockT,
    AccountId: Codec,
    C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
    C::Api: SpaceFollowsRuntimeApi<Block, AccountId>, 
[src]

Loading content...