pub struct PropertyShape { /* private fields */ }
Implementations§
Source§impl PropertyShape
impl PropertyShape
pub fn new(id: RDFNode, path: SHACLPath) -> Self
pub fn with_name(self, name: MessageMap) -> Self
pub fn with_description(self, description: MessageMap) -> Self
pub fn with_order(self, order: Option<NumericLiteral>) -> Self
pub fn with_group(self, group: Option<RDFNode>) -> Self
pub fn with_targets(self, targets: Vec<Target>) -> Self
pub fn with_property_shapes(self, property_shapes: Vec<RDFNode>) -> Self
pub fn with_components(self, components: Vec<Component>) -> Self
pub fn with_closed(self, closed: bool) -> Self
pub fn with_severity(self, severity: Option<Severity>) -> Self
pub fn id(&self) -> &RDFNode
pub fn path(&self) -> &SHACLPath
pub fn name(&self) -> &MessageMap
pub fn description(&self) -> &MessageMap
pub fn is_closed(&self) -> &bool
pub fn is_deactivated(&self) -> &bool
pub fn severity(&self) -> Option<Severity>
pub fn components(&self) -> &Vec<Component>
pub fn targets(&self) -> &Vec<Target>
pub fn property_shapes(&self) -> &Vec<RDFNode>
pub fn get_value_nodes( &self, data_graph: &SRDFGraph, focus_node: &RDFNode, path: &SHACLPath, ) -> HashSet<RDFNode>
pub fn write<RDF>(&self, rdf: &mut RDF) -> Result<(), RDF::Err>where
RDF: SRDFBuilder,
Trait Implementations§
Source§impl Clone for PropertyShape
impl Clone for PropertyShape
Source§fn clone(&self) -> PropertyShape
fn clone(&self) -> PropertyShape
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 PropertyShape
impl Debug for PropertyShape
Auto Trait Implementations§
impl Freeze for PropertyShape
impl RefUnwindSafe for PropertyShape
impl Send for PropertyShape
impl Sync for PropertyShape
impl Unpin for PropertyShape
impl UnwindSafe for PropertyShape
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