ros2_interfaces_rolling/topic_tools_interfaces/srv/
demux_delete.rs

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