Files
Neon-Desk/rust/vendor/crabrl/src/instance.rs

22 lines
385 B
Rust

use crate::model::Document;
use crate::Result;
pub struct InstanceValidator {
strict: bool,
}
impl InstanceValidator {
pub fn new() -> Self {
Self { strict: false }
}
pub fn with_strict(mut self, strict: bool) -> Self {
self.strict = strict;
self
}
pub fn validate(&self, _document: &Document) -> Result<()> {
Ok(())
}
}