pub struct ValidatorConfig {
pub max_steps: usize,
pub rdf_data: Option<RdfDataConfig>,
pub shex: Option<ShExConfig>,
pub shapemap: Option<ShapemapConfig>,
}
Expand description
This struct can be used to customize the behavour of ShEx validators
Fields§
§max_steps: usize
Maximum numbers of validation steps
rdf_data: Option<RdfDataConfig>
Configuration of RDF data readers
shex: Option<ShExConfig>
Configuration of ShEx schemas
shapemap: Option<ShapemapConfig>
Configuration of Shapemaps
Implementations§
Source§impl ValidatorConfig
impl ValidatorConfig
Sourcepub fn from_path<P: AsRef<Path>>(
path: P,
) -> Result<ValidatorConfig, ValidatorError>
pub fn from_path<P: AsRef<Path>>( path: P, ) -> Result<ValidatorConfig, ValidatorError>
Obtain a ValidatorConfig
from a path file in YAML format
pub fn set_max_steps(&mut self, max_steps: usize)
pub fn max_steps(&self) -> usize
pub fn rdf_data_config(&self) -> RdfDataConfig
pub fn shex_config(&self) -> ShExConfig
pub fn shapemap_config(&self) -> ShapemapConfig
Trait Implementations§
Source§impl Clone for ValidatorConfig
impl Clone for ValidatorConfig
Source§fn clone(&self) -> ValidatorConfig
fn clone(&self) -> ValidatorConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ValidatorConfig
impl Debug for ValidatorConfig
Source§impl Default for ValidatorConfig
impl Default for ValidatorConfig
Source§impl<'de> Deserialize<'de> for ValidatorConfig
impl<'de> Deserialize<'de> for ValidatorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidatorConfig
impl PartialEq for ValidatorConfig
Source§impl Serialize for ValidatorConfig
impl Serialize for ValidatorConfig
impl StructuralPartialEq for ValidatorConfig
Auto Trait Implementations§
impl Freeze for ValidatorConfig
impl RefUnwindSafe for ValidatorConfig
impl Send for ValidatorConfig
impl Sync for ValidatorConfig
impl Unpin for ValidatorConfig
impl UnwindSafe for ValidatorConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more