pub trait PrivateDataQuery {
    type Hash;

    // Required methods
    fn with_private_data_access(
        hash: Self::Hash,
        author: Arc<AgentPubKey>
    ) -> Self;
    fn without_private_data_access(hash: Self::Hash) -> Self;
}
Expand description

Queries that can have access to private data will implement this trait.

Required Associated Types§

Required Methods§

source

fn with_private_data_access(hash: Self::Hash, author: Arc<AgentPubKey>) -> Self

Construct the query with access to private data for this agent.

source

fn without_private_data_access(hash: Self::Hash) -> Self

Construct the query without access to private data.

Implementors§