peace_cfg/state/nothing.rs
1use std::fmt;
2
3use serde::{Deserialize, Serialize};
4
5/// Represents no data.
6///
7/// This is used to represent no separate physical state.
8#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
9pub struct Nothing;
10
11impl fmt::Display for Nothing {
12 fn fmt(&self, _f: &mut fmt::Formatter<'_>) -> fmt::Result {
13 Ok(())
14 }
15}