pub struct TargetInfo {
pub kind: String,
pub value: String,
}Expand description
The target of a NodeShape (what objects it applies to).
Fields§
§kind: String“targetClass”, “targetNode”, “targetSubjectsOf”, “targetObjectsOf”, or “sparqlTarget”. Only “targetClass”/“targetNode” resolve to a concrete class for codegen (see codegen.rs’s kind filter in render_file); the others carry no resolvable class and are recorded so the shape survives parsing instead of being dropped, with codegen recording an explicit skip entry for them instead.
value: StringFor “targetClass”/“targetNode”: simplified IRI of the target (e.g.
“cim:ACLineSegment”). For “targetSubjectsOf”/“targetObjectsOf”: the predicate
IRI. For “sparqlTarget”: the blank node id of the sh:target [a sh:SPARQLTarget; ..] object (not a resolvable value on its own).
Trait Implementations§
Source§impl Clone for TargetInfo
impl Clone for TargetInfo
Auto Trait Implementations§
impl Forget for TargetInfo
impl Freeze for TargetInfo
impl Move for TargetInfo
impl RefUnwindSafe for TargetInfo
impl Send for TargetInfo
impl Sync for TargetInfo
impl Unpin for TargetInfo
impl UnsafeUnpin for TargetInfo
impl UnwindSafe for TargetInfo
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