MCPcopy Create free account
hub / github.com/dfinity/orbit / ExternalCanister

Class ExternalCanister

core/station/impl/src/models/external_canister.rs:35–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#[storable]
34#[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
35pub struct ExternalCanister {
36 /// The external canister id, which is a UUID.
37 pub id: ExternalCanisterEntryId,
38 /// The canister id, which is a Principal.
39 pub canister_id: Principal,
40 /// The canister name.
41 pub name: String,
42 /// The canister description.
43 pub description: Option<String>,
44 /// The canister labels.
45 ///
46 /// This is a list of strings that can be used to categorize the canister
47 /// and make it easier to search for.
48 pub labels: Vec<String>,
49 /// The canister metadata.
50 ///
51 /// Can be used for storing additional information such as a group_id,
52 /// logo, group_name, etc.
53 #[serde(default)]
54 pub metadata: Metadata,
55 /// The state of the canister (e.g. active, archived, etc.)
56 pub state: ExternalCanisterState,
57 /// When the canister was added to the station.
58 pub created_at: Timestamp,
59 /// The last time the record was updated.
60 pub modified_at: Option<Timestamp>,
61 /// Is the canister monitored by the station.
62 pub monitoring: Option<ExternalCanisterMonitoring>,
63}
64
65#[storable]
66#[derive(Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]

Calls

no outgoing calls