pub struct Relation {
pub id: RelationId,
pub kind: RelationKind,
pub target: RecordId,
pub target_locator: Option<String>,
pub certainty: Certainty,
pub asserted_by: Attribution,
pub asserted_at: Timestamp,
pub sources: Vec<SourceRef>,
pub note: Option<String>,
pub retracted: bool,
}Expand description
A relationship as stored on the source record.
Fields§
§id: RelationId§kind: RelationKind§target: RecordId§target_locator: Option<String>Where a remote target can be retrieved, if known.
certainty: Certainty§asserted_by: Attribution§asserted_at: Timestamp§sources: Vec<SourceRef>§note: Option<String>§retracted: boolRetracted relations are kept for history but excluded from traversal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Relation
impl<'de> Deserialize<'de> for Relation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnsafeUnpin 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