pub struct ShExConfigMain {
pub show_time: Option<bool>,
pub shex: Option<ShExConfig>,
}
Expand description
ShEx configuration on main
Fields§
§show_time: Option<bool>
Show information about time
shex: Option<ShExConfig>
Specific ShEx configuration
Implementations§
Source§impl ShExConfigMain
impl ShExConfigMain
Sourcepub fn from_path<P: AsRef<Path>>(
path: P,
) -> Result<ShExConfigMain, ShExConfigError>
pub fn from_path<P: AsRef<Path>>( path: P, ) -> Result<ShExConfigMain, ShExConfigError>
Obtain a ShExConfigMain
from a path file in YAML format
pub fn shex_config(&self) -> ShExConfig
pub fn show_imports(&self) -> bool
pub fn show_extends(&self) -> bool
pub fn show_shapes(&self) -> bool
pub fn set_show_extends(&mut self, flag: bool)
Trait Implementations§
Source§impl Clone for ShExConfigMain
impl Clone for ShExConfigMain
Source§fn clone(&self) -> ShExConfigMain
fn clone(&self) -> ShExConfigMain
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 ShExConfigMain
impl Debug for ShExConfigMain
Source§impl Default for ShExConfigMain
impl Default for ShExConfigMain
Source§fn default() -> ShExConfigMain
fn default() -> ShExConfigMain
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShExConfigMain
impl<'de> Deserialize<'de> for ShExConfigMain
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 ShExConfigMain
impl PartialEq for ShExConfigMain
Source§impl Serialize for ShExConfigMain
impl Serialize for ShExConfigMain
impl StructuralPartialEq for ShExConfigMain
Auto Trait Implementations§
impl Freeze for ShExConfigMain
impl RefUnwindSafe for ShExConfigMain
impl Send for ShExConfigMain
impl Sync for ShExConfigMain
impl Unpin for ShExConfigMain
impl UnwindSafe for ShExConfigMain
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