pub struct NodeDerivation {
pub sub_kind: ProvenanceSubKind,
pub source_node: String,
pub source_graph: Option<String>,
}Expand description
Cross-graph derivation provenance: a record that this node was derived from a node in another graph (the tear-out “fork” / cross-graph copy).
This is the node-anchored analog of an in-graph Provenance edge. A
node→node derivation within one graph rides a petgraph Provenance edge,
but a cross-graph derivation has its object node in a different graph, so
it cannot be a petgraph edge — it is recorded here on the derived node
instead, beside NodeImportProvenance and NodeClassification. It
projects to a <this> {provenance predicate} <source> statement when the
RDF projection lands (per the petgraph-rdf projection profile).
Fields§
§sub_kind: ProvenanceSubKindWhich provenance relation this is (e.g. ProvenanceSubKind::CopiedFrom).
source_node: StringThe source node’s stable id, as a string (matches the kernel’s node-id-as-string convention in persisted records). The object of the derivation statement.
source_graph: Option<String>The source graph’s id (the constellation GraphId rendered as a string),
or None when same-graph or unknown — the named-graph scope of the source.
Trait Implementations§
Source§impl Archive for NodeDerivation
impl Archive for NodeDerivation
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
serialize. Read moreSource§type Archived = ArchivedNodeDerivation
type Archived = ArchivedNodeDerivation
Source§type Resolver = NodeDerivationResolver
type Resolver = NodeDerivationResolver
Source§impl Clone for NodeDerivation
impl Clone for NodeDerivation
Source§impl Debug for NodeDerivation
impl Debug for NodeDerivation
Source§impl<'de> Deserialize<'de> for NodeDerivation
impl<'de> Deserialize<'de> for NodeDerivation
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>,
Source§impl<__D: Fallible + ?Sized> Deserialize<NodeDerivation, __D> for Archived<NodeDerivation>where
ProvenanceSubKind: Archive,
<ProvenanceSubKind as Archive>::Archived: Deserialize<ProvenanceSubKind, __D>,
String: Archive,
<String as Archive>::Archived: Deserialize<String, __D>,
Option<String>: Archive,
<Option<String> as Archive>::Archived: Deserialize<Option<String>, __D>,
impl<__D: Fallible + ?Sized> Deserialize<NodeDerivation, __D> for Archived<NodeDerivation>where
ProvenanceSubKind: Archive,
<ProvenanceSubKind as Archive>::Archived: Deserialize<ProvenanceSubKind, __D>,
String: Archive,
<String as Archive>::Archived: Deserialize<String, __D>,
Option<String>: Archive,
<Option<String> as Archive>::Archived: Deserialize<Option<String>, __D>,
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<NodeDerivation, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<NodeDerivation, <__D as Fallible>::Error>
impl Eq for NodeDerivation
Source§impl PartialEq for NodeDerivation
impl PartialEq for NodeDerivation
Source§impl Serialize for NodeDerivation
impl Serialize for NodeDerivation
impl StructuralPartialEq for NodeDerivation
Auto Trait Implementations§
impl Freeze for NodeDerivation
impl RefUnwindSafe for NodeDerivation
impl Send for NodeDerivation
impl Sync for NodeDerivation
impl Unpin for NodeDerivation
impl UnsafeUnpin for NodeDerivation
impl UnwindSafe for NodeDerivation
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
Archive, it may be
unsized. Read moreSource§fn archived_metadata(
&self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T> MemoryPayload for T
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.