diff options
Diffstat (limited to 'server/src/api_model.rs')
| -rw-r--r-- | server/src/api_model.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/src/api_model.rs b/server/src/api_model.rs index 1c02f6c..286e11f 100644 --- a/server/src/api_model.rs +++ b/server/src/api_model.rs @@ -1,4 +1,4 @@ -use serde::Serialize; +use rocket::serde::Serialize; #[derive(Serialize, Copy, Clone)] pub enum ReviewState { @@ -68,3 +68,10 @@ pub struct Projects { pub more: bool, pub projects: Vec<ProjectEntry>, } + +#[derive(Serialize)] +pub struct StatusResponse { + pub ok: bool, + #[serde(skip_serializing_if = "Option::is_none")] + pub error: Option<String>, +} |
