aboutsummaryrefslogtreecommitdiff
path: root/src/messages.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages.rs')
-rw-r--r--src/messages.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/messages.rs b/src/messages.rs
index 46cc4c5..31ed48f 100644
--- a/src/messages.rs
+++ b/src/messages.rs
@@ -3,3 +3,12 @@ pub struct PublicExposedPorts {
pub tcp_ports: Vec<u16>,
pub udp_ports: Vec<u16>
}
+
+impl PublicExposedPorts {
+ pub fn new() -> Self {
+ return Self {
+ tcp_ports: Vec::new(),
+ udp_ports: Vec::new()
+ }
+ }
+}