ros2_interfaces_rolling/mavros_msgs/srv/
file_remove.rs

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