pub struct Relation {
pub source: String,
pub target: String,
pub relation_type: String,
pub description: String,
pub doc_id: Option<String>,
}Expand description
A directed relation between two entities.
Fields§
§source: StringId of the source entity.
target: StringId of the target entity.
relation_type: StringRelation type (e.g. works_at, part_of).
description: StringDescription of the relation.
doc_id: Option<String>Optional id of the document the relation was extracted from.
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 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