use serde::Serialize; #[derive(sqlx::FromRow, Serialize)] pub struct Category { pub id: i64, pub name: String, pub color: String, } #[derive(Debug)] pub struct Create { pub name: String, pub color: String, } #[derive(Debug)] pub struct Update { pub name: String, pub color: String, }