Trait holochain_state::query::PrivateDataQuery
source · [−]pub trait PrivateDataQuery {
type Hash;
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
fn 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.
fn 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.