feat(taxonomy): add rust sidecar compact surface pipeline
This commit is contained in:
21
rust/vendor/crabrl/src/instance.rs
vendored
Normal file
21
rust/vendor/crabrl/src/instance.rs
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
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(())
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user