aboutsummaryrefslogtreecommitdiff
path: root/src/messages.rs
blob: ea1629a740c3c888c3a431d45f56c4dd33d8b6bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::HashSet;

#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PublicExposedPorts {
  pub tcp_ports: HashSet<u16>,
  pub udp_ports: HashSet<u16>,
  pub acme: HashSet<String>,
}

impl PublicExposedPorts {
  pub fn new() -> Self {
    return Self {
      tcp_ports: HashSet::new(),
      udp_ports: HashSet::new(),
      acme: HashSet::new(),
    };
  }
}