Extract, (de-)serialize and format id

This commit is contained in:
Joscha 2022-02-10 21:43:18 +01:00
parent 70bb6f31cf
commit cfaafba77f
4 changed files with 80 additions and 5 deletions

View file

@ -1,12 +1,11 @@
mod id;
mod macros;
use serde::{Deserialize, Serialize};
pub use self::id::*;
use self::macros::packets;
#[derive(Debug, Deserialize, Serialize)]
pub struct Id(pub u128);
#[derive(Debug, Deserialize, Serialize)]
pub struct HelloCmd {
pub id: Id,