From af68ae63e4b0f5f6237bbda4fed9fd2a6022357d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 26 Apr 2021 13:30:51 +0000 Subject: fmt: Rename re_server module to server --- src/server/cmd/structure.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/server/cmd/structure.rs (limited to 'src/server/cmd/structure.rs') diff --git a/src/server/cmd/structure.rs b/src/server/cmd/structure.rs new file mode 100644 index 0000000..ea6bc0c --- /dev/null +++ b/src/server/cmd/structure.rs @@ -0,0 +1,22 @@ +// Copyleft 2021-2021 Whirlsplash +// SPDX-License-Identifier: GPL-3.0-only + +pub struct Command { + pub length: i32, + pub obj_id: i32, + pub id: i32, + pub body: Vec, +} +impl Command { + pub fn _new() -> Self { Command::default() } +} +impl Default for Command { + fn default() -> Self { + Command { + length: 0, + obj_id: 0, + id: 0, + body: vec![], + } + } +} -- cgit v1.2.3