ros2_interfaces_rolling/topic_tools_interfaces/srv/
mux_list.rs

1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct MuxListRequest {
6
7}
8
9impl Default for MuxListRequest {
10    fn default() -> Self {
11        MuxListRequest {
12
13        }
14    }
15}
16
17impl ros2_client::Message for MuxListRequest {}
18
19
20
21#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
22pub struct MuxListResponse {
23    pub topics: Vec<::std::string::String>,
24}
25
26impl Default for MuxListResponse {
27    fn default() -> Self {
28        MuxListResponse {
29            topics: Vec::new(),
30        }
31    }
32}
33
34impl ros2_client::Message for MuxListResponse {}
35
36
37pub struct MuxList;
38impl ros2_client::Service for MuxList {
39    type Request = MuxListRequest;
40    type Response = MuxListResponse;
41
42    fn request_type_name(&self) -> &str { "MuxListRequest" }
43    fn response_type_name(&self) -> &str { "MuxListResponse" }
44}