Trait posts_rpc::PostsRuntimeApi[][src]

pub trait PostsRuntimeApi<Block, AccountId, BlockNumber>: Core<Block> where
    Block: Block,
    AccountId: Codec,
    BlockNumber: Codec
{ pub fn get_next_post_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>
    ) -> Result<u64, Self::Error> { ... }
pub fn get_next_post_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext
    ) -> Result<u64, Self::Error> { ... }
pub fn get_posts_by_ids(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        post_ids: Vec<u64, Global>,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_posts_by_ids_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        post_ids: Vec<u64, Global>,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_public_posts(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        kind_filter: Vec<FlatPostKind, Global>,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_public_posts_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        kind_filter: Vec<FlatPostKind, Global>,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_public_posts_by_space_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        space_id: u64,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_public_posts_by_space_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        space_id: u64,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_unlisted_posts_by_space_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        space_id: u64,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_unlisted_posts_by_space_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        space_id: u64,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_public_post_ids_by_space_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        space_id: u64
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_public_post_ids_by_space_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        space_id: u64
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_unlisted_post_ids_by_space_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        space_id: u64
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_unlisted_post_ids_by_space_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        space_id: u64
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_reply_ids_by_parent_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        parent_id: u64
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_reply_ids_by_parent_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        parent_id: u64
    ) -> Result<Vec<u64, Global>, Self::Error> { ... }
pub fn get_reply_ids_by_parent_ids(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        parent_ids: Vec<u64, Global>
    ) -> Result<BTreeMap<u64, Vec<u64, Global>>, Self::Error> { ... }
pub fn get_reply_ids_by_parent_ids_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        parent_ids: Vec<u64, Global>
    ) -> Result<BTreeMap<u64, Vec<u64, Global>>, Self::Error> { ... }
pub fn get_replies_by_parent_id(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        parent_id: u64,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_replies_by_parent_id_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        parent_id: u64,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_replies_by_parent_ids(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        parent_ids: Vec<u64, Global>,
        offset: u64,
        limit: u16
    ) -> Result<BTreeMap<u64, Vec<FlatPost<AccountId, BlockNumber>, Global>>, Self::Error> { ... }
pub fn get_replies_by_parent_ids_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        parent_ids: Vec<u64, Global>,
        offset: u64,
        limit: u16
    ) -> Result<BTreeMap<u64, Vec<FlatPost<AccountId, BlockNumber>, Global>>, Self::Error> { ... }
pub fn get_feed(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        account: AccountId,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... }
pub fn get_feed_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        account: AccountId,
        offset: u64,
        limit: u16
    ) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error> { ... } }

Provided methods

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

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

pub fn get_posts_by_ids(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    post_ids: Vec<u64, Global>,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_posts_by_ids_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    post_ids: Vec<u64, Global>,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_public_posts(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    kind_filter: Vec<FlatPostKind, Global>,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_public_posts_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    kind_filter: Vec<FlatPostKind, Global>,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_public_posts_by_space_id(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    space_id: u64,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_public_posts_by_space_id_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    space_id: u64,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_unlisted_posts_by_space_id(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    space_id: u64,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_unlisted_posts_by_space_id_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    space_id: u64,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

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

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

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

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

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

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

pub fn get_reply_ids_by_parent_ids(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    parent_ids: Vec<u64, Global>
) -> Result<BTreeMap<u64, Vec<u64, Global>>, Self::Error>
[src]

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

pub fn get_replies_by_parent_id(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    parent_id: u64,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_replies_by_parent_id_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    parent_id: u64,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_replies_by_parent_ids(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    parent_ids: Vec<u64, Global>,
    offset: u64,
    limit: u16
) -> Result<BTreeMap<u64, Vec<FlatPost<AccountId, BlockNumber>, Global>>, Self::Error>
[src]

pub fn get_replies_by_parent_ids_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    parent_ids: Vec<u64, Global>,
    offset: u64,
    limit: u16
) -> Result<BTreeMap<u64, Vec<FlatPost<AccountId, BlockNumber>, Global>>, Self::Error>
[src]

pub fn get_feed(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    account: AccountId,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

pub fn get_feed_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    account: AccountId,
    offset: u64,
    limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>, Global>, Self::Error>
[src]

Loading content...

Trait Implementations

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

Implementors

Loading content...