| Crates.io | capability-skeleton-validation |
| lib.rs | capability-skeleton-validation |
| version | 0.1.0 |
| created_at | 2025-07-14 04:57:34.359218+00 |
| updated_at | 2025-07-14 04:57:34.359218+00 |
| description | A Rust crate for validating the structural integrity between the GrowerTreeConfiguration and its corresponding Skeleton. It detects and categorizes deviations in depth, breadth, and probability distributions using numeric data. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1751141 |
| size | 185,933 |
The capability-skeleton-validation crate is designed to ensure structural integrity between a Skeleton and its GrowerTreeConfiguration. It evaluates the alignment of a predefined skeleton with its configuration parameters by identifying discrepancies categorized under various DeviationFlag types. This validation process is critical in fields where hierarchical structures or conditional probability distributions dictate the correctness of complex systems.
This enumeration identifies specific deviations, capturing differences between expected and actual parameters without relying on string data. Examples include:
The SkeletonValidationReport provides a comprehensive validation summary:
new() initializes a report with no deviations.is_clean() confirms total compliance with the configuration when no deviation flags are present.push() or append() methods.The SkeletonValidationError enum encapsulates potential errors, enhancing the robustness of the validation ecosystem.
Add the following to your Cargo.toml file:
[dependencies]
capability-skeleton-validation = "0.1.0"
After importing the crate, utilize the SkeletonValidationReport to track and handle deviations:
use capability_skeleton_validation::{SkeletonValidationReport, DeviationFlag};
let mut report = SkeletonValidationReport::new();
let some_deviation = DeviationFlag::DepthExceeded { expected: 3, actual: 5 };
report.push(some_deviation);
if report.is_clean() {
println!("The skeleton matches the configuration.");
} else {
println!("Deviations detected.");
}
Contributions in the form of enhancements or bug fixes are welcome. Please ensure your code is well-tested and adheres to the style guidelines.
This crate is provided under your preferred license. Please check the LICENSE file for more details.
This README.md was generated by an AI model and may not be 100% accurate, though it should be pretty good.