Trait posts_runtime_api::PostsApi [−][src]
Provided methods
fn get_next_post_id(
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<PostId, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>
) -> Result<PostId, Self::Error>
fn get_next_post_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<PostId, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext
) -> Result<PostId, Self::Error>
fn get_posts_by_ids(
&self,
__runtime_api_at_param__: &BlockId<Block>,
post_ids: Vec<PostId>,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
post_ids: Vec<PostId>,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_posts_by_ids_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
post_ids: Vec<PostId>,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
post_ids: Vec<PostId>,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_public_posts(
&self,
__runtime_api_at_param__: &BlockId<Block>,
kind_filter: Vec<FlatPostKind>,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
kind_filter: Vec<FlatPostKind>,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_public_posts_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
kind_filter: Vec<FlatPostKind>,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
kind_filter: Vec<FlatPostKind>,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_public_posts_by_space_id(
&self,
__runtime_api_at_param__: &BlockId<Block>,
space_id: SpaceId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
space_id: SpaceId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_public_posts_by_space_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
space_id: SpaceId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
space_id: SpaceId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_unlisted_posts_by_space_id(
&self,
__runtime_api_at_param__: &BlockId<Block>,
space_id: SpaceId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
space_id: SpaceId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_unlisted_posts_by_space_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
space_id: SpaceId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
space_id: SpaceId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_public_post_ids_by_space_id(
&self,
__runtime_api_at_param__: &BlockId<Block>,
space_id: SpaceId
) -> Result<Vec<PostId>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
space_id: SpaceId
) -> Result<Vec<PostId>, Self::Error>
fn get_public_post_ids_by_space_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
space_id: SpaceId
) -> Result<Vec<PostId>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
space_id: SpaceId
) -> Result<Vec<PostId>, Self::Error>
fn get_unlisted_post_ids_by_space_id(
&self,
__runtime_api_at_param__: &BlockId<Block>,
space_id: SpaceId
) -> Result<Vec<PostId>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
space_id: SpaceId
) -> Result<Vec<PostId>, Self::Error>
fn get_unlisted_post_ids_by_space_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
space_id: SpaceId
) -> Result<Vec<PostId>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
space_id: SpaceId
) -> Result<Vec<PostId>, Self::Error>
fn get_reply_ids_by_parent_id(
&self,
__runtime_api_at_param__: &BlockId<Block>,
parent_id: PostId
) -> Result<Vec<PostId>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
parent_id: PostId
) -> Result<Vec<PostId>, Self::Error>
fn get_reply_ids_by_parent_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
parent_id: PostId
) -> Result<Vec<PostId>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
parent_id: PostId
) -> Result<Vec<PostId>, Self::Error>
fn get_reply_ids_by_parent_ids(
&self,
__runtime_api_at_param__: &BlockId<Block>,
parent_ids: Vec<PostId>
) -> Result<BTreeMap<PostId, Vec<PostId>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
parent_ids: Vec<PostId>
) -> Result<BTreeMap<PostId, Vec<PostId>>, Self::Error>
fn get_reply_ids_by_parent_ids_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
parent_ids: Vec<PostId>
) -> Result<BTreeMap<PostId, Vec<PostId>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
parent_ids: Vec<PostId>
) -> Result<BTreeMap<PostId, Vec<PostId>>, Self::Error>
fn get_replies_by_parent_id(
&self,
__runtime_api_at_param__: &BlockId<Block>,
parent_id: PostId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
parent_id: PostId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_replies_by_parent_id_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
parent_id: PostId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
parent_id: PostId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
fn get_replies_by_parent_ids(
&self,
__runtime_api_at_param__: &BlockId<Block>,
parent_ids: Vec<PostId>,
offset: u64,
limit: u16
) -> Result<RepliesByPostId<AccountId, BlockNumber>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
parent_ids: Vec<PostId>,
offset: u64,
limit: u16
) -> Result<RepliesByPostId<AccountId, BlockNumber>, Self::Error>
fn get_replies_by_parent_ids_with_context(
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
parent_ids: Vec<PostId>,
offset: u64,
limit: u16
) -> Result<RepliesByPostId<AccountId, BlockNumber>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
parent_ids: Vec<PostId>,
offset: u64,
limit: u16
) -> Result<RepliesByPostId<AccountId, BlockNumber>, Self::Error>
fn get_feed(
&self,
__runtime_api_at_param__: &BlockId<Block>,
account: AccountId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
account: AccountId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>
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>>, Self::Error>
[src]
&self,
__runtime_api_at_param__: &BlockId<Block>,
context: ExecutionContext,
account: AccountId,
offset: u64,
limit: u16
) -> Result<Vec<FlatPost<AccountId, BlockNumber>>, Self::Error>