Trait holochain_state::query::PrivateDataQuery
source · 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§
sourcefn with_private_data_access(hash: Self::Hash, author: Arc<AgentPubKey>) -> Self
fn with_private_data_access(hash: Self::Hash, author: Arc<AgentPubKey>) -> Self
Construct the query with access to private data for this agent.
sourcefn without_private_data_access(hash: Self::Hash) -> Self
fn without_private_data_access(hash: Self::Hash) -> Self
Construct the query without access to private data.