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