pub enum GraphRelationKind {
Legacy(RelationKind),
Extended(ExtendedRelationKind),
}Expand description
Relation family that preserves the existing exhaustive legacy enum.
Variants§
Legacy(RelationKind)
Existing ProjectAtlas relation value and payload spelling.
Extended(ExtendedRelationKind)
Additive repository-wide graph relation.
Implementations§
Source§impl GraphRelationKind
impl GraphRelationKind
Sourcepub const fn from_legacy(kind: RelationKind) -> Self
pub const fn from_legacy(kind: RelationKind) -> Self
Wrap one legacy relation without changing its enum.
Sourcepub const fn legacy_kind(self) -> Option<RelationKind>
pub const fn legacy_kind(self) -> Option<RelationKind>
Return the old projection when this is an existing relation family.
Trait Implementations§
Source§impl Clone for GraphRelationKind
impl Clone for GraphRelationKind
Source§fn clone(&self) -> GraphRelationKind
fn clone(&self) -> GraphRelationKind
Returns a duplicate 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 GraphRelationKind
impl Debug for GraphRelationKind
Source§impl<'de> Deserialize<'de> for GraphRelationKind
impl<'de> Deserialize<'de> for GraphRelationKind
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 GraphRelationKind
impl PartialEq for GraphRelationKind
Source§impl Serialize for GraphRelationKind
impl Serialize for GraphRelationKind
impl Copy for GraphRelationKind
impl Eq for GraphRelationKind
impl StructuralPartialEq for GraphRelationKind
Auto Trait Implementations§
impl Freeze for GraphRelationKind
impl RefUnwindSafe for GraphRelationKind
impl Send for GraphRelationKind
impl Sync for GraphRelationKind
impl Unpin for GraphRelationKind
impl UnwindSafe for GraphRelationKind
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
Compare self to
key and return true if they are equal.