canic_host/release_set/config/model/
mod.rs1use std::path::PathBuf;
2
3pub(super) const DEFAULT_INITIAL_CYCLES: u128 = 5_000_000_000_000;
4
5#[derive(Clone, Debug, Eq, PartialEq)]
9pub struct ConfiguredPoolExpectation {
10 pub pool: String,
11 pub canister_role: String,
12}
13
14#[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#[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#[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#[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}