Skip to main content

canic_host/release_set/config/model/
mod.rs

1use std::path::PathBuf;
2
3pub(super) const DEFAULT_INITIAL_CYCLES: u128 = 5_000_000_000_000;
4
5///
6/// ConfiguredPoolExpectation
7///
8#[derive(Clone, Debug, Eq, PartialEq)]
9pub struct ConfiguredPoolExpectation {
10    pub pool: String,
11    pub canister_role: String,
12}
13
14///
15/// ConfiguredRoleLifecycle
16///
17#[derive(Clone, Debug, Eq, PartialEq)]
18pub struct ConfiguredRoleLifecycle {
19    pub app: String,
20    pub role: String,
21    pub display: String,
22    pub declaration_kind: String,
23    pub package: String,
24    pub attached: bool,
25    pub state: String,
26    pub topology: Option<String>,
27}
28
29///
30/// DeclaredAppRole
31///
32#[derive(Clone, Debug, Eq, PartialEq)]
33pub struct DeclaredAppRole {
34    pub app: String,
35    pub role: String,
36    pub display: String,
37    pub package: String,
38}
39
40///
41/// AttachedAppRole
42///
43#[derive(Clone, Debug, Eq, PartialEq)]
44pub struct AttachedAppRole {
45    pub app: String,
46    pub role: String,
47    pub display: String,
48    pub component_spec: String,
49    pub kind: String,
50    pub topology: String,
51}
52
53///
54/// RenamedAppRole
55///
56#[derive(Clone, Debug, Eq, PartialEq)]
57pub struct RenamedAppRole {
58    pub app: String,
59    pub old_role: String,
60    pub new_role: String,
61    pub old_display: String,
62    pub new_display: String,
63    pub package_manifest: Option<PathBuf>,
64    pub package_manifest_note: Option<String>,
65}