ros2_interfaces_rolling/micro_ros_msgs/msg/
entity.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct Entity {
5 pub entity_type: u8,
6 pub name: ::std::string::String,
7 pub types: Vec<::std::string::String>,
8}
9
10impl Entity {
11 pub const PUBLISHER: u8 = 0;
12 pub const SUBSCRIBER: u8 = 1;
13 pub const SERVICE_SERVER: u8 = 2;
14 pub const SERVICE_CLIENT: u8 = 3;
15}
16
17impl Default for Entity {
18 fn default() -> Self {
19 Entity {
20 entity_type: 0,
21 name: ::std::string::String::new(),
22 types: Vec::new(),
23 }
24 }
25}
26
27impl ros2_client::Message for Entity {}