ros2-interfaces-iron 0.0.2

Structs for Messages and Services listed by ROS Index for ROS2 Iron. Built around the `ros2-client` crate.
Documentation
use serde::{Deserialize, Serialize};


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ServiceNodeRequest {
    pub service: ::std::string::String,
}

impl Default for ServiceNodeRequest {
    fn default() -> Self {
        ServiceNodeRequest {
            service: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for ServiceNodeRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ServiceNodeResponse {
    pub node: ::std::string::String,
}

impl Default for ServiceNodeResponse {
    fn default() -> Self {
        ServiceNodeResponse {
            node: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for ServiceNodeResponse {}


pub struct ServiceNode;
impl ros2_client::Service for ServiceNode {
    type Request = ServiceNodeRequest;
    type Response = ServiceNodeResponse;

    fn request_type_name(&self) -> &str { "ServiceNodeRequest" }
    fn response_type_name(&self) -> &str { "ServiceNodeResponse" }
}