ros2_interfaces_iron/rosapi_msgs/srv/
services.rs

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