1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
use crate::prelude::*;
use holo_hash::*;
use holochain_zome_types::ZomeName;
#[derive(
Serialize,
Deserialize,
Clone,
Debug,
PartialEq,
Eq,
derive_more::Constructor,
derive_builder::Builder,
)]
#[serde(rename_all = "snake_case")]
pub struct DnaManifestV1 {
pub(crate) name: String,
pub(crate) uid: Option<String>,
pub(crate) properties: Option<YamlProperties>,
pub(crate) zomes: Vec<ZomeManifest>,
}
#[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)]
#[serde(rename_all = "snake_case")]
pub struct ZomeManifest {
pub(crate) name: ZomeName,
pub(crate) hash: Option<WasmHashB64>,
#[serde(flatten)]
pub(crate) location: ZomeLocation,
}
pub type ZomeLocation = mr_bundle::Location;
impl ZomeManifest {
pub fn location(&self) -> &ZomeLocation {
&self.location
}
}