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

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

impl ros2_client::Message for AddProblemRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AddProblemResponse {
    pub success: bool,
    pub error_info: ::std::string::String,
}

impl Default for AddProblemResponse {
    fn default() -> Self {
        AddProblemResponse {
            success: false,
            error_info: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for AddProblemResponse {}


pub struct AddProblem;
impl ros2_client::Service for AddProblem {
    type Request = AddProblemRequest;
    type Response = AddProblemResponse;

    fn request_type_name(&self) -> &str { "AddProblemRequest" }
    fn response_type_name(&self) -> &str { "AddProblemResponse" }
}