ros2-interfaces-rolling 0.0.2

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


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ComplexSrvMsgRequest {
    pub req: crate::rosbag2_test_msgdefs::msg::BasicMsg,
}

impl Default for ComplexSrvMsgRequest {
    fn default() -> Self {
        ComplexSrvMsgRequest {
            req: crate::rosbag2_test_msgdefs::msg::BasicMsg::default(),
        }
    }
}

impl ros2_client::Message for ComplexSrvMsgRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ComplexSrvMsgResponse {
    pub resp: crate::rosbag2_test_msgdefs::msg::BasicMsg,
}

impl Default for ComplexSrvMsgResponse {
    fn default() -> Self {
        ComplexSrvMsgResponse {
            resp: crate::rosbag2_test_msgdefs::msg::BasicMsg::default(),
        }
    }
}

impl ros2_client::Message for ComplexSrvMsgResponse {}


pub struct ComplexSrvMsg;
impl ros2_client::Service for ComplexSrvMsg {
    type Request = ComplexSrvMsgRequest;
    type Response = ComplexSrvMsgResponse;

    fn request_type_name(&self) -> &str { "ComplexSrvMsgRequest" }
    fn response_type_name(&self) -> &str { "ComplexSrvMsgResponse" }
}