mirror of
https://github.com/stefanoamorelli/crabrl.git
synced 2026-04-18 07:10:42 +00:00
- Remove trailing whitespace - Add newlines at end of files - Fix multi-line string formatting
22 lines
385 B
Rust
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(())
|
|
}
|
|
}
|