[][src]Function hdk::api::get_links_count_with_options

pub fn get_links_count_with_options(
    base: &Address,
    link_type: LinkMatch<&str>,
    tag: LinkMatch<&str>,
    options: GetLinksOptions
) -> ZomeApiResult<GetLinksResultCount>

Similar to the get_links_with_options but it allows the user to get the number of links in the dht

Examples


pub fn handle_posts_count_by_agent(agent: Address) -> ZomeApiResult<GetLinksResultCount> {
    hdk::get_links_count_with_options(&agent, LinkMatch::Exactly("authored_posts"), LinkMatch::Any, GetLinksOptions::default())
}