ros2_interfaces_rolling/rmf_reservation_msgs/msg/
reservation_allocation.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct ReservationAllocation {
5 pub ticket: crate::rmf_reservation_msgs::msg::Ticket,
6 pub instruction_type: u8,
7 pub chosen_alternative: u64,
8 pub resource: ::std::string::String,
9}
10
11impl ReservationAllocation {
12 pub const IMMEDIATELY_PROCEED: u8 = 0;
13 pub const WAIT_IDENTIFIED: u8 = 1;
14}
15
16impl Default for ReservationAllocation {
17 fn default() -> Self {
18 ReservationAllocation {
19 ticket: crate::rmf_reservation_msgs::msg::Ticket::default(),
20 instruction_type: 0,
21 chosen_alternative: 0,
22 resource: ::std::string::String::new(),
23 }
24 }
25}
26
27impl ros2_client::Message for ReservationAllocation {}