move module

This commit is contained in:
Samuel Lorch 2023-10-21 23:33:38 +02:00
parent c17e076bc8
commit 030555e721
2 changed files with 15 additions and 8 deletions

20
src/definitions/config.rs Normal file
View file

@ -0,0 +1,20 @@
use serde::{Deserialize, Serialize};
use validator::Validate;
use super::firewall;
use super::network;
use super::object;
use super::service;
use super::system;
use super::vpn;
#[derive(Serialize, Deserialize, Clone, Validate, Default, Debug)]
pub struct Config {
pub config_version: u64,
pub network: network::Network,
pub object: object::Object,
pub system: system::System,
pub service: service::Service,
pub vpn: vpn::VPN,
pub firewall: firewall::Firewall,
}

7
src/definitions/mod.rs Normal file
View file

@ -0,0 +1,7 @@
pub mod config;
pub mod firewall;
pub mod network;
pub mod object;
pub mod service;
pub mod system;
pub mod vpn;