pub struct Relation {
pub source_kind: EntityKind,
pub source_id: Id,
pub target_kind: EntityKind,
pub target_id: Id,
pub kind: String,
pub weight: u32,
pub source: String,
}Expand description
A typed link between two canonical entities.
Structural links and summaries inferred from local tags live here. Rich dated external relationships stay in the attributed source layer, where their source identity and every relationship detail remain intact.
Fields§
§source_kind: EntityKindWhich table source_id indexes.
source_id: IdEntity the link starts from.
target_kind: EntityKindWhich table target_id indexes.
target_id: IdEntity the link reaches.
kind: StringNature of the link: placement_of, performance_of, edition_of,
released_by, discography, credit:<role>, collaborated…
weight: u32Number of observed occurrences: used to rank links by strength.
source: StringProvenance: tags, musicbrainz, manual.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnwindSafe for Relation
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