aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_server/src/net/network_property.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-06-06 00:09:18 +0000
committerFuwn <[email protected]>2021-06-06 00:09:18 +0000
commite46da84bd264993d32a45b88bd5d51af0c6ef5ed (patch)
tree7588d6b85683a339deb65fab248b3927012157e3 /crates/whirl_server/src/net/network_property.rs
parentrefactor(whirl_server): remove single imports (diff)
downloadwhirl-e46da84bd264993d32a45b88bd5d51af0c6ef5ed.tar.xz
whirl-e46da84bd264993d32a45b88bd5d51af0c6ef5ed.zip
refactor(whirl_server::net): move orphan functions to methods within property list struct
Diffstat (limited to 'crates/whirl_server/src/net/network_property.rs')
-rw-r--r--crates/whirl_server/src/net/network_property.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/crates/whirl_server/src/net/network_property.rs b/crates/whirl_server/src/net/network_property.rs
new file mode 100644
index 0000000..259c83b
--- /dev/null
+++ b/crates/whirl_server/src/net/network_property.rs
@@ -0,0 +1,18 @@
+// Copyleft (ɔ) 2021-2021 The Whirlsplash Collective
+// SPDX-License-Identifier: GPL-3.0-only
+
+pub struct NetworkProperty {
+ pub prop_id: i32,
+ pub value: String,
+}
+impl NetworkProperty {
+ pub fn _new() -> Self { Self::default() }
+}
+impl Default for NetworkProperty {
+ fn default() -> Self {
+ Self {
+ prop_id: 0,
+ value: "".to_string(),
+ }
+ }
+}