feat: add structs.rs

Moved all server related structs into new file, added implementations to create, fetch, etc.
This commit is contained in:
Radical 2025-05-08 13:21:54 +00:00
parent 2e4860323e
commit 6374963e2f
7 changed files with 386 additions and 317 deletions

View file

@ -10,6 +10,7 @@ use config::{Config, ConfigBuilder};
mod api;
pub mod utils;
pub mod structs;
type Error = Box<dyn std::error::Error>;
@ -21,7 +22,7 @@ struct Args {
}
#[derive(Clone)]
struct Data {
pub struct Data {
pub pool: Pool<Postgres>,
pub cache_pool: redis::Client,
pub _config: Config,