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 GetBoolRequest {
    pub ask: bool,
}

impl Default for GetBoolRequest {
    fn default() -> Self {
        GetBoolRequest {
            ask: false,
        }
    }
}

impl ros2_client::Message for GetBoolRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetBoolResponse {
    pub value: bool,
}

impl Default for GetBoolResponse {
    fn default() -> Self {
        GetBoolResponse {
            value: false,
        }
    }
}

impl ros2_client::Message for GetBoolResponse {}


pub struct GetBool;
impl ros2_client::Service for GetBool {
    type Request = GetBoolRequest;
    type Response = GetBoolResponse;

    fn request_type_name(&self) -> &str { "GetBoolRequest" }
    fn response_type_name(&self) -> &str { "GetBoolResponse" }
}