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 Whirlsplash // 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![], } } }