ros2_interfaces_rolling/fuse_msgs/srv/
set_graph.rs

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