Skip to main content

acts_next/store/data/
proc.rs

1use serde::{Deserialize, Serialize};
2
3use crate::store::{DbCollectionIden, StoreIden};
4
5#[derive(Deserialize, Serialize, Debug, Clone)]
6pub struct Proc {
7    pub id: String,
8    pub state: String,
9    pub mid: String,
10    pub name: String,
11    pub start_time: i64,
12    pub end_time: i64,
13    pub timestamp: i64,
14    pub model: String,
15    pub env: String,
16    pub err: Option<String>,
17}
18
19impl DbCollectionIden for Proc {
20    fn iden() -> StoreIden {
21        StoreIden::Procs
22    }
23}