lights/src/utils.rs
2023-03-13 20:59:50 +00:00

12 lines
279 B
Rust

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