aboutsummaryrefslogtreecommitdiff
path: root/src/server/cmd/structure.rs
blob: 23e91ca03f9357c411bd498e249729ce5b5c0262 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyleft (ɔ) 2021-2021 The Whirlsplash Collective
// SPDX-License-Identifier: GPL-3.0-only

pub struct Command {
  pub length: i32,
  pub obj_id: i32,
  pub id:     i32,
  pub body:   Vec<u8>,
}
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![],
    }
  }
}