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