refactor(workspace): enforce layered crate boundaries

This commit is contained in:
elky
2026-07-15 23:47:19 +08:00
parent a728c090a9
commit 8616fe6ee2
969 changed files with 40187 additions and 27240 deletions
+20
View File
@@ -0,0 +1,20 @@
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub enum UsageEventKind {
Started,
Streaming,
Completed,
Failed,
Cancelled,
}
#[derive(Debug, thiserror::Error, PartialEq, Eq)]
pub enum UsageEventError {
#[error("usage event id cannot be empty")]
MissingEventId,
#[error("usage request id cannot be empty")]
MissingRequestId,
#[error("usage subject id cannot be empty")]
MissingSubjectId,
}