ros2_interfaces_rolling/rmf_task_msgs/msg/
api_response.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct ApiResponse {
5 #[serde(rename = "type")] pub type_: u8,
6 pub json_msg: ::std::string::String,
7 pub request_id: ::std::string::String,
8}
9
10impl ApiResponse {
11 pub const TYPE_UNINITIALIZED: u8 = 0;
12 pub const TYPE_ACKNOWLEDGE: u8 = 1;
13 pub const TYPE_RESPONDING: u8 = 2;
14}
15
16impl Default for ApiResponse {
17 fn default() -> Self {
18 ApiResponse {
19 type_: 0,
20 json_msg: ::std::string::String::new(),
21 request_id: ::std::string::String::new(),
22 }
23 }
24}
25
26impl ros2_client::Message for ApiResponse {}