SNAPKITTYWEST's picture
push from SNAPKITTYWEST/hyperkitty-constraint-dsl
224e773 verified
Raw
History Blame Contribute Delete
489 Bytes
//! Inverted AST Security Model
//!
//! Payload nodes (weight=0) cannot control routing authority.
//! Structural nodes (weight=1) carry authority.
pub mod nodes;
pub mod weights;
pub mod validation;
pub use hyperkitty_core::{Error, Result};
pub use nodes::{AstNode, NodeType};
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn node_creation() {
let node = AstNode::new(NodeType::Intent, "test");
assert!(node.weight() > 0.0);
}
}