1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
use holochain_core_types::dna::capabilities::CapabilityRequest;
use holochain_json_api::{error::JsonError, json::*};
use holochain_persistence_api::{cas::content::Address, hash::HashString};

#[derive(Deserialize, Serialize, Clone, Debug, DefaultJson)]
pub struct ZomeApiGlobals {
    pub dna_name: String,
    pub dna_address: Address,
    pub agent_id_str: String,
    pub agent_address: Address,
    pub agent_initial_hash: HashString,
    pub agent_latest_hash: HashString,
    pub public_token: Address,
    pub cap_request: Option<CapabilityRequest>,
    pub properties: JsonString,
}