Trait profiles_rpc::ProfilesApi[][src]

pub trait ProfilesApi<BlockHash, AccountId, BlockNumber>: Sized + Send + Sync + 'static {
    fn get_social_accounts_by_ids(
        &self,
        at: Option<BlockHash>,
        account_ids: Vec<AccountId>
    ) -> Result<Vec<FlatSocialAccount<AccountId, BlockNumber>>>; 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_social_accounts_by_ids(
    &self,
    at: Option<BlockHash>,
    account_ids: Vec<AccountId>
) -> Result<Vec<FlatSocialAccount<AccountId, BlockNumber>>>
[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> ProfilesApi<<Block as Block>::Hash, AccountId, BlockNumber> for Profiles<C, Block> where
    Block: BlockT,
    AccountId: Codec,
    BlockNumber: Codec,
    C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
    C::Api: ProfilesRuntimeApi<Block, AccountId, BlockNumber>, 
[src]

Loading content...