ros2_interfaces_humble/visualization_msgs/msg/
menu_entry.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct MenuEntry {
5 pub id: u32,
6 pub parent_id: u32,
7 pub title: ::std::string::String,
8 pub command: ::std::string::String,
9 pub command_type: u8,
10}
11
12impl MenuEntry {
13 pub const FEEDBACK: u8 = 0;
14 pub const ROSRUN: u8 = 1;
15 pub const ROSLAUNCH: u8 = 2;
16}
17
18impl Default for MenuEntry {
19 fn default() -> Self {
20 MenuEntry {
21 id: 0,
22 parent_id: 0,
23 title: ::std::string::String::new(),
24 command: ::std::string::String::new(),
25 command_type: 0,
26 }
27 }
28}
29
30impl ros2_client::Message for MenuEntry {}