canic_host/release_set/config/model/
mod.rs1use 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#[derive(Clone, Debug, Eq, PartialEq)]
10pub struct ConfiguredPoolExpectation {
11 pub pool: String,
12 pub canister_role: String,
13}
14
15#[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#[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#[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#[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}