pub struct ShExConfig {
pub show_extends: Option<bool>,
pub show_imports: Option<bool>,
pub show_shapes: Option<bool>,
pub shex_format: Option<ShExFormat>,
pub rdf_config_shex: Option<RdfDataConfig>,
pub base: Option<IriS>,
}
Expand description
This struct can be used to customize the behavour of ShEx validators
Fields§
§show_extends: Option<bool>
Show information about extended shapes
show_imports: Option<bool>
Show information about schema imports
show_shapes: Option<bool>
Show information about shapes
shex_format: Option<ShExFormat>
Default ShEx format
rdf_config_shex: Option<RdfDataConfig>
Information about RDF data config which is used for Schemas represented in RDF
base: Option<IriS>
Default IRI to resolve relative IRIs
Implementations§
Source§impl ShExConfig
impl ShExConfig
pub fn rdf_config(&self) -> RdfDataConfig
pub fn with_show_extends(self, flag: bool) -> Self
pub fn set_show_extends(self, flag: bool)
pub fn with_show_imports(self, flag: bool) -> Self
pub fn with_show_shapes(self, flag: bool) -> Self
Trait Implementations§
Source§impl Clone for ShExConfig
impl Clone for ShExConfig
Source§fn clone(&self) -> ShExConfig
fn clone(&self) -> ShExConfig
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 ShExConfig
impl Debug for ShExConfig
Source§impl Default for ShExConfig
impl Default for ShExConfig
Source§impl<'de> Deserialize<'de> for ShExConfig
impl<'de> Deserialize<'de> for ShExConfig
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 ShExConfig
impl PartialEq for ShExConfig
Source§impl Serialize for ShExConfig
impl Serialize for ShExConfig
impl StructuralPartialEq for ShExConfig
Auto Trait Implementations§
impl Freeze for ShExConfig
impl RefUnwindSafe for ShExConfig
impl Send for ShExConfig
impl Sync for ShExConfig
impl Unpin for ShExConfig
impl UnwindSafe for ShExConfig
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