pub enum ClosedInfo {
Yes {
ignored_properties: HashSet<IriS>,
defined_properties: HashSet<IriS>,
allowed_properties: HashSet<IriS>,
},
No,
}Variants§
Implementations§
Source§impl ClosedInfo
impl ClosedInfo
pub fn is_closed(&self) -> bool
pub fn ignored_properties(&self) -> Option<&HashSet<IriS>>
Sourcepub fn allowed_properties(&self) -> Option<&HashSet<IriS>>
pub fn allowed_properties(&self) -> Option<&HashSet<IriS>>
Allowed properties are the union of ignored properties and the properties that are defined in a shape
pub fn get_closed_info_node_shape<R: Rdf>( shape: &NodeShape<R>, schema: &ShaclSchema<R>, ) -> Result<Self, ShaclError>
pub fn get_closed_info_property_shape<R: Rdf>( shape: &PropertyShape<R>, schema: &ShaclSchema<R>, ) -> Result<Self, ShaclError>
Trait Implementations§
Source§impl Clone for ClosedInfo
impl Clone for ClosedInfo
Source§impl Debug for ClosedInfo
impl Debug for ClosedInfo
Auto Trait Implementations§
impl Freeze for ClosedInfo
impl RefUnwindSafe for ClosedInfo
impl Send for ClosedInfo
impl Sync for ClosedInfo
impl Unpin for ClosedInfo
impl UnsafeUnpin for ClosedInfo
impl UnwindSafe for ClosedInfo
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