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