object_transfer 0.0.1

An object transfer library for various message broker and/or protocols
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use ::serde::{Deserialize, Serialize};

#[derive(
  Debug, Clone, PartialEq, Eq, Ord, PartialOrd, Serialize, Deserialize,
)]
pub struct TestEntity {
  pub id: u32,
  pub name: String,
}

impl TestEntity {
  pub fn new(id: u32, name: &str) -> Self {
    Self {
      id,
      name: name.to_string(),
    }
  }
}