pub enum ProvenanceEdge {
DerivedFrom,
Cites,
InfluencedBy,
}Expand description
Represents the kind of relationship between two provenance nodes.
- WHAT – An enumeration of supported edge types. Currently we support:
DerivedFrom– Indicates that the target was derived from the source.Cites– A citation relationship.InfluencedBy– Denotes influence without direct derivation.
- HOW – Used as the edge payload in the
petgraph::DiGraph. The enum is#[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)]so it can be serialised when persisting the graph. - WHY – Encoding edge semantics as a dedicated enum makes provenance queries expressive and type‑safe, while keeping the on‑disk representation simple (a stringified variant).
Variants§
DerivedFrom
The target node was derived from the source node.
Cites
The target node cites the source node.
InfluencedBy
The target node was influenced by the source node.
Trait Implementations§
Source§impl Clone for ProvenanceEdge
impl Clone for ProvenanceEdge
Source§fn clone(&self) -> ProvenanceEdge
fn clone(&self) -> ProvenanceEdge
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 ProvenanceEdge
impl Debug for ProvenanceEdge
Source§impl<'de> Deserialize<'de> for ProvenanceEdge
impl<'de> Deserialize<'de> for ProvenanceEdge
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 ProvenanceEdge
impl PartialEq for ProvenanceEdge
Source§impl Serialize for ProvenanceEdge
impl Serialize for ProvenanceEdge
impl Copy for ProvenanceEdge
impl Eq for ProvenanceEdge
impl StructuralPartialEq for ProvenanceEdge
Auto Trait Implementations§
impl Freeze for ProvenanceEdge
impl RefUnwindSafe for ProvenanceEdge
impl Send for ProvenanceEdge
impl Sync for ProvenanceEdge
impl Unpin for ProvenanceEdge
impl UnwindSafe for ProvenanceEdge
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.