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