hushspec 0.1.0

Portable specification types for AI agent security rules
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub use crate::generated_models::{HushSpec, MergeStrategy};

impl HushSpec {
    pub fn parse(yaml: &str) -> Result<Self, serde_yaml::Error> {
        serde_yaml::from_str(yaml)
    }

    pub fn to_yaml(&self) -> Result<String, serde_yaml::Error> {
        serde_yaml::to_string(self)
    }
}