pub enum RelationKind {
Show 25 variants
Supports,
Contradicts,
RespondsTo,
Duplicates,
Supersedes,
Corrects,
Retracts,
DerivedFrom,
Cites,
ProposesChangeTo,
DecidedBy,
IssuedBy,
AssignedTo,
OwnedBy,
Implements,
FundedBy,
ProcuredThrough,
Affects,
LocatedAt,
Fulfills,
MeasuredBy,
ResultedIn,
Disputes,
RelatedTo,
Extension(NamespacedName),
}Expand description
The controlled relation vocabulary (plus namespaced extensions).
Variants§
Supports
Contradicts
RespondsTo
Duplicates
Supersedes
Corrects
Retracts
DerivedFrom
Cites
ProposesChangeTo
DecidedBy
IssuedBy
AssignedTo
OwnedBy
Implements
FundedBy
ProcuredThrough
Affects
LocatedAt
Fulfills
MeasuredBy
ResultedIn
Disputes
RelatedTo
Extension(NamespacedName)
A namespaced term defined outside the core vocabulary.
Implementations§
Source§impl RelationKind
impl RelationKind
Source§impl RelationKind
impl RelationKind
Sourcepub fn target_kinds(&self) -> Option<&'static [RecordKind]>
pub fn target_kinds(&self) -> Option<&'static [RecordKind]>
Kinds the target must have, when the target is known locally.
Sourcepub fn requires_same_kind(&self) -> bool
pub fn requires_same_kind(&self) -> bool
Relations that only make sense between records of the same kind.
Trait Implementations§
Source§impl Clone for RelationKind
impl Clone for RelationKind
Source§fn clone(&self) -> RelationKind
fn clone(&self) -> RelationKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelationKind
impl Debug for RelationKind
Source§impl<'de> Deserialize<'de> for RelationKind
impl<'de> Deserialize<'de> for RelationKind
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RelationKind
impl Display for RelationKind
impl Eq for RelationKind
Source§impl FromStr for RelationKind
impl FromStr for RelationKind
Source§impl Hash for RelationKind
impl Hash for RelationKind
Source§impl Ord for RelationKind
impl Ord for RelationKind
Source§fn cmp(&self, other: &RelationKind) -> Ordering
fn cmp(&self, other: &RelationKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RelationKind
impl PartialEq for RelationKind
Source§impl PartialOrd for RelationKind
impl PartialOrd for RelationKind
Source§impl Serialize for RelationKind
impl Serialize for RelationKind
impl StructuralPartialEq for RelationKind
Auto Trait Implementations§
impl Freeze for RelationKind
impl RefUnwindSafe for RelationKind
impl Send for RelationKind
impl Sync for RelationKind
impl Unpin for RelationKind
impl UnsafeUnpin for RelationKind
impl UnwindSafe for RelationKind
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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