1 2 3 4 5 6 7 8 9 10 11
use serde::{Deserialize, Serialize}; pub(crate) mod contract; #[derive(Serialize, Deserialize)] pub struct ApiResponse<T, E> { pub success: bool, pub message: String, pub error: Option<E>, pub data: Option<T>, }