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