pub struct Relation {
pub id: Option<i64>,
pub source_id: i64,
pub target_id: i64,
pub rel_type: String,
pub weight: f64,
pub properties: HashMap<String, Value>,
pub created_at: Option<i64>,
}Expand description
Represents a relation between entities in the knowledge graph.
Fields§
§id: Option<i64>§source_id: i64§target_id: i64§rel_type: String§weight: f64§properties: HashMap<String, Value>§created_at: Option<i64>Implementations§
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
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