standardizer-common 1.0.1

Shared routing types for the Standardizer tools
Documentation
use crate::tool::Tool;

#[cfg_attr(feature = "source", derive(serde::Deserialize))]
#[cfg_attr(feature = "encode", derive(bincode_next::Encode))]
#[cfg_attr(feature = "decode", derive(bincode_next::Decode))]
pub struct Route {
    extensions: Vec<String>,
    tools: Vec<Tool>,
}

impl Route {
    pub fn extensions(&self) -> &[String] {
        &self.extensions
    }

    pub fn tools(&self) -> &[Tool] {
        &self.tools
    }
}