1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Serialize, Deserialize)]
4pub struct Alias {
5 pub r#type: String,
6 pub name: String,
7 pub value: String,
8 pub description: String,
9}
10
11#[derive(Debug, Serialize, Deserialize)]
12pub struct Rule {
13 pub disabled: bool,
14 pub r#type: String,
15 pub policy: String,
16 pub protocol: String,
17 pub source_port: String,
18 pub source_addr: String,
19 pub destination_port: String,
20 pub destination_addr: String,
21 pub description: String,
22 pub interface: String,
23 pub order: u64,
24}
25
26#[derive(Debug, Serialize, Deserialize)]
27pub struct NetworkInterface {
28 pub name: String,
29 pub device: String,
30 pub address: String,
31}
32
33pub struct Configuration {
34 pub rules: Vec<Rule>,
35 pub aliases: Vec<Alias>,
36 pub interfaces: Vec<NetworkInterface>,
37 pub raw_content: String,
38 pub hostname: String,
39}