entrenar/storage/registry/transition.rs
1//! Stage transition records
2
3use chrono::{DateTime, Utc};
4use serde::{Deserialize, Serialize};
5
6use super::stage::ModelStage;
7
8/// Stage transition record
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct StageTransition {
11 /// Model name
12 pub model_name: String,
13 /// Version
14 pub version: u32,
15 /// Previous stage
16 pub from_stage: ModelStage,
17 /// New stage
18 pub to_stage: ModelStage,
19 /// Timestamp
20 pub timestamp: DateTime<Utc>,
21 /// User who made the transition
22 pub user: Option<String>,
23 /// Reason for transition
24 pub reason: Option<String>,
25}