diff options
Diffstat (limited to 'mumlib/src/state.rs')
| -rw-r--r-- | mumlib/src/state.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mumlib/src/state.rs b/mumlib/src/state.rs index b09726e..ef25a79 100644 --- a/mumlib/src/state.rs +++ b/mumlib/src/state.rs @@ -134,3 +134,24 @@ impl Display for User { write!(f, "{}", self.name) } } + +#[derive(Debug, Default)] +pub struct UserDiff { + pub comment: Option<String>, + pub hash: Option<String>, + pub name: Option<String>, + pub priority_speaker: Option<bool>, + pub recording: Option<bool>, + + pub suppress: Option<bool>, // by me + pub self_mute: Option<bool>, // by self + pub self_deaf: Option<bool>, // by self + pub mute: Option<bool>, // by admin + pub deaf: Option<bool>, // by admin +} + +impl UserDiff { + pub fn new() -> Self { + UserDiff::default() + } +} |
