Make auditlog log

This commit is contained in:
Nadja Reitzenstein
2022-03-20 22:46:04 +01:00
parent c402c71abc
commit 3eab5b8702
6 changed files with 51 additions and 9 deletions

View File

@ -31,6 +31,7 @@ pub struct State {
pub inner: MachineState,
}
impl fmt::Debug for State {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let mut sf = f.debug_struct("State");
@ -42,6 +43,12 @@ impl fmt::Debug for State {
}
}
impl fmt::Display for ArchivedState {
fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {
Display::fmt(&self.inner, f)
}
}
impl serde::Serialize for State {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: serde::Serializer