handle handlers

This commit is contained in:
nora 2022-06-14 20:49:35 +02:00
parent 9014ff6eff
commit 724d7467c3
7 changed files with 350 additions and 208 deletions

20
src/lawsuit.rs Normal file
View file

@ -0,0 +1,20 @@
use serde::{Deserialize, Serialize};
use serenity::model::id::{ChannelId, UserId};
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
pub enum LawsuitState {
Initial,
InProgress,
Completed,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Lawsuit {
pub plaintiff: UserId,
pub accused: UserId,
pub plaintiff_layer: Option<UserId>,
pub accused_layer: Option<UserId>,
pub reason: String,
pub state: LawsuitState,
pub court_room: ChannelId,
}