pub struct KnowledgeRelation {
pub id: i64,
pub from_entity: String,
pub relation: String,
pub to_entity: String,
pub properties: Value,
pub created_at: String,
}Expand description
A directed relation between two entities in the knowledge graph.
Fields§
§id: i64§from_entity: String§relation: String§to_entity: String§properties: Value§created_at: StringTrait Implementations§
Source§impl Clone for KnowledgeRelation
impl Clone for KnowledgeRelation
Source§fn clone(&self) -> KnowledgeRelation
fn clone(&self) -> KnowledgeRelation
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 KnowledgeRelation
impl Debug for KnowledgeRelation
Source§impl<'de> Deserialize<'de> for KnowledgeRelation
impl<'de> Deserialize<'de> for KnowledgeRelation
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 KnowledgeRelation
impl RefUnwindSafe for KnowledgeRelation
impl Send for KnowledgeRelation
impl Sync for KnowledgeRelation
impl Unpin for KnowledgeRelation
impl UnsafeUnpin for KnowledgeRelation
impl UnwindSafe for KnowledgeRelation
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