ros2_interfaces_jazzy/rosbag2_interfaces/srv/
play_next.rs1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct PlayNextRequest {
6
7}
8
9impl Default for PlayNextRequest {
10 fn default() -> Self {
11 PlayNextRequest {
12
13 }
14 }
15}
16
17impl ros2_client::Message for PlayNextRequest {}
18
19
20
21#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
22pub struct PlayNextResponse {
23 pub success: bool,
24}
25
26impl Default for PlayNextResponse {
27 fn default() -> Self {
28 PlayNextResponse {
29 success: false,
30 }
31 }
32}
33
34impl ros2_client::Message for PlayNextResponse {}
35
36
37pub struct PlayNext;
38impl ros2_client::Service for PlayNext {
39 type Request = PlayNextRequest;
40 type Response = PlayNextResponse;
41
42 fn request_type_name(&self) -> &str { "PlayNextRequest" }
43 fn response_type_name(&self) -> &str { "PlayNextResponse" }
44}