rustdds 0.1.0

Rust DDS implementation with RTPS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::dds::traits::key::{Keyed};
use serde::{Serialize, Deserialize};

#[derive(Serialize, Debug, Clone, PartialEq, Deserialize)]
pub struct ShapeType {
  a: i32,
}

impl Keyed for ShapeType {
  type K = i32;
  fn get_key(&self) -> Self::K {
    self.a
  }
}