canic_core/domain/cycles.rs
1//! Module: domain::cycles
2//!
3//! Responsibility: define pure cycle-event value enums shared across storage
4//! projections and endpoint DTOs.
5//! Does not own: cycle event DTO structs, stable records, or runtime funding
6//! workflows.
7//! Boundary: DTOs re-export these values to preserve the public API path while
8//! internal code imports them from the domain owner.
9
10use candid::CandidType;
11use serde::{Deserialize, Serialize};
12
13///
14/// CycleTopupEventStatus
15///
16
17#[derive(CandidType, Clone, Copy, Debug, Deserialize, Eq, PartialEq, Serialize)]
18#[remain::sorted]
19pub enum CycleTopupEventStatus {
20 RequestErr,
21 RequestOk,
22 RequestScheduled,
23}