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 ApiServiceRequest {
    pub json_msg: ::std::string::String,
}

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

impl ros2_client::Message for ApiServiceRequest {}



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

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

impl ros2_client::Message for ApiServiceResponse {}


pub struct ApiService;
impl ros2_client::Service for ApiService {
    type Request = ApiServiceRequest;
    type Response = ApiServiceResponse;

    fn request_type_name(&self) -> &str { "ApiServiceRequest" }
    fn response_type_name(&self) -> &str { "ApiServiceResponse" }
}