fix: resolve compilation errors by adding missing imports and fixing schema definitions

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-12 16:58:29 -03:00
parent 3395c54843
commit 4d3a9fd3ac
6 changed files with 8 additions and 14 deletions

View File

@@ -8,6 +8,7 @@ use std::str::FromStr;
use std::sync::Arc;
use std::time::Instant;
use tokio::sync::Mutex;
use utoipa::ToSchema;
#[derive(Debug, Clone)]
pub struct ServerConfig {
@@ -33,14 +34,14 @@ pub struct AppState {
pub password: Option<String>,
}
#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, ToSchema)]
pub struct ApiResponse<T> {
pub success: bool,
pub data: Option<T>,
pub error: Option<String>,
}
#[derive(Serialize, Deserialize)]
#[derive(Serialize, Deserialize, ToSchema)]
pub struct ItemInfo {
pub id: i64,
pub ts: String,