pub struct RelationRef {
pub source: EntityRef,
pub kind: String,
pub target: EntityRef,
pub provenance: String,
pub source_id: Option<String>,
}Expand description
Stable identity of one directed relationship.
Catalog vector positions never appear here. Endpoints use the same stable references as personal annotations; provenance and the source relationship identifier keep two independent assertions about the same pair distinct.
Fields§
§source: EntityRefWhere the directed relationship starts.
kind: StringRelationship type, such as performance_of or credit:producer.
target: EntityRefWhere it ends.
provenance: StringWho asserted or derived it: tags, musicbrainz, manual…
source_id: Option<String>Stable relationship-row identifier supplied by the source, when any.
Implementations§
Trait Implementations§
Source§impl Clone for RelationRef
impl Clone for RelationRef
Source§fn clone(&self) -> RelationRef
fn clone(&self) -> RelationRef
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 RelationRef
impl Debug for RelationRef
Source§impl Ord for RelationRef
impl Ord for RelationRef
Source§fn cmp(&self, other: &RelationRef) -> Ordering
fn cmp(&self, other: &RelationRef) -> Ordering
1.21.0 · 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 RelationRef
impl PartialEq for RelationRef
Source§impl PartialOrd for RelationRef
impl PartialOrd for RelationRef
impl Eq for RelationRef
impl StructuralPartialEq for RelationRef
Auto Trait Implementations§
impl Freeze for RelationRef
impl RefUnwindSafe for RelationRef
impl Send for RelationRef
impl Sync for RelationRef
impl Unpin for RelationRef
impl UnwindSafe for RelationRef
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