Extract, (de-)serialize and format id
This commit is contained in:
parent
70bb6f31cf
commit
cfaafba77f
4 changed files with 80 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue