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 Payload {
    #[serde(rename = "type")]    pub type_: u8,
    pub topic: ::std::string::String,
    pub message_type: ::std::string::String,
    pub data: Vec<u8>,
}

impl Payload {
    pub const PAYLOAD_TYPE_SERIALIZED_MESSAGE: u8 = 1;
}

impl Default for Payload {
    fn default() -> Self {
        Payload {
            type_: 0,
            topic: ::std::string::String::new(),
            message_type: ::std::string::String::new(),
            data: Vec::new(),
        }
    }
}

impl ros2_client::Message for Payload {}