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

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

impl ros2_client::Message for ServiceProvidersRequest {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ServiceProvidersResponse {
    pub providers: Vec<::std::string::String>,
}

impl Default for ServiceProvidersResponse {
    fn default() -> Self {
        ServiceProvidersResponse {
            providers: Vec::new(),
        }
    }
}

impl ros2_client::Message for ServiceProvidersResponse {}


pub struct ServiceProviders;
impl ros2_client::Service for ServiceProviders {
    type Request = ServiceProvidersRequest;
    type Response = ServiceProvidersResponse;

    fn request_type_name(&self) -> &str { "ServiceProvidersRequest" }
    fn response_type_name(&self) -> &str { "ServiceProvidersResponse" }
}