ros2_interfaces_rolling/rmf_task_msgs/msg/
alert.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct Alert {
5 pub id: ::std::string::String,
6 pub title: ::std::string::String,
7 pub subtitle: ::std::string::String,
8 pub message: ::std::string::String,
9 pub display: bool, pub tier: u8,
11 pub responses_available: Vec<::std::string::String>,
12 pub alert_parameters: Vec<crate::rmf_task_msgs::msg::AlertParameter>,
13 pub task_id: ::std::string::String,
14}
15
16impl Alert {
17 pub const TIER_INFO: u8 = 0;
18 pub const TIER_WARNING: u8 = 1;
19 pub const TIER_ERROR: u8 = 2;
20}
21
22impl Default for Alert {
23 fn default() -> Self {
24 Alert {
25 id: ::std::string::String::new(),
26 title: ::std::string::String::new(),
27 subtitle: ::std::string::String::new(),
28 message: ::std::string::String::new(),
29 display: true,
30 tier: 0,
31 responses_available: Vec::new(),
32 alert_parameters: Vec::new(),
33 task_id: ::std::string::String::new(),
34 }
35 }
36}
37
38impl ros2_client::Message for Alert {}