relationship_type

The kinds of relationship between two entities, and the inverse of each.

enum Primitive

source

pub enum Primitive

The 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

source

pub fn inverse(self) -> Self

Returns 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.