relationship_type
The kinds of relationship between two entities, and the inverse of each.
enum Primitive
pub enum PrimitiveThe type of relationship between two entities.
| Variant | Description |
|---|---|
BlockedBy |
Source cannot progress until the target is resolved. |
Blocks |
Source prevents the target from progressing. |
ChildOf |
Source is a child of the target in a parent/child hierarchy. |
ParentOf |
Source is a parent of the target in a parent/child hierarchy. |
RelatesTo |
Symmetric, loose association between source and target. |
Implements Clone, Copy, Debug, Deserialize<'de>, Eq, Hash, PartialEq, Serialize, Display, FromStr.
Primitive::inverse
pub fn inverse(self) -> SelfReturns the inverse relationship type.
| Parameter | Type | Description |
|---|---|---|
| returns | Self | blocks and blocked-by swap, parent-of and child-of swap, and relates-to stays relates-to. |