lights/src/utils.rs
2023-03-14 23:25:15 +00:00

12 lines
250 B
Rust

use rocket::{serde::{Deserialize, Serialize}, Responder};
#[derive(Deserialize, Serialize)]
#[serde(crate="rocket::serde")]
pub struct ApiResponse {
pub code: u32,
pub message: String
}
#[derive(Responder)]
pub struct ApiResponder(String);