feat: add structs.rs
Moved all server related structs into new file, added implementations to create, fetch, etc.
This commit is contained in:
parent
2e4860323e
commit
6374963e2f
7 changed files with 386 additions and 317 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue