ros2_interfaces_rolling/rosapi_msgs/srv/
service_response_details.rs

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