Process initiator working

This commit is contained in:
Nadja Reitzenstein
2022-06-18 16:52:22 +02:00
parent 6d8d1384d9
commit a66303566a
8 changed files with 275 additions and 2 deletions

View File

@ -1,9 +1,9 @@
use crate::config::deser_option;
use crate::utils::oid::ObjectIdentifier;
use once_cell::sync::Lazy;
use rkyv::{Archive, Archived, Deserialize, Infallible};
use std::fmt;
use std::fmt::Write;
use std::str::FromStr;
//use crate::oidvalue;
@ -54,6 +54,11 @@ pub enum Status {
/// The status of the machine
pub struct MachineState {
pub state: Status,
#[serde(
default,
skip_serializing_if = "Option::is_none",
deserialize_with = "deser_option"
)]
pub previous: Option<UserRef>,
}