1pub mod access;
12pub mod bootstrap;
13pub mod cascade;
14pub mod config;
15pub mod error;
16pub mod ic;
17pub mod icts;
18pub mod lifecycle;
19pub mod placement;
20pub mod pool;
21pub mod rpc;
22pub mod state;
23pub mod timer;
24pub mod topology;
25pub mod wasm;
26
27pub mod cycles {
33 pub use crate::workflow::runtime::cycles::query::CycleTrackerQuery;
34}
35pub mod env {
36 pub use crate::workflow::env::query::EnvQuery;
37}
38pub mod icrc {
39 pub use crate::workflow::icrc::query::{Icrc10Query, Icrc21Query};
40}
41pub mod log {
42 pub use crate::workflow::log::query::LogQuery;
43}
44pub mod memory {
45 pub use crate::workflow::memory::query::MemoryQuery;
46}
47pub mod metrics {
48 pub use crate::workflow::metrics::query::MetricsQuery;
49}
50
51#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
56pub struct EndpointCall {
57 pub endpoint: EndpointId,
58 pub kind: EndpointCallKind,
59}
60
61#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
66pub struct EndpointId {
67 pub name: &'static str,
68}
69
70impl EndpointId {
71 #[must_use]
72 pub const fn new(name: &'static str) -> Self {
73 Self { name }
74 }
75}
76
77#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
82pub enum EndpointCallKind {
83 Query,
84 QueryComposite,
85 Update,
86}