mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
refactor(workspace): enforce layered crate boundaries
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user