rover_nexus_core 0.2.0

Wire-format message types (Cap'n Proto + JSON) for communication between robotic vehicles and a robot orchestration server: Rover Nexus
Documentation
// Copyright 2026 Rottinghaus Dynamics
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// spatial_directives_query.rs
//! Rust domain types for spatial directive query messages.

use serde::{Deserialize, Serialize};

use crate::core_model::SpatialDirective;

/// Request message containing a list of spatial directive ids to fetch.
/// An empty `ids` requests all stored spatial directives.
#[derive(Debug, Clone, PartialEq, Eq, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct GetSpatialDirectivesRequest {
    pub ids: Vec<String>,
}

/// Response message containing a list of fetched spatial directives.
/// Unlike the feature query, this carries the full directive (timing, zone
/// parameters, capabilities, and the inner spatial geometry).
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct GetSpatialDirectivesResponse {
    pub items: Vec<SpatialDirective>,
}