12 lines
250 B
Rust
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);
|