pub struct GraphBuilder { /* private fields */ }
Implementations§
Source§impl GraphBuilder
impl GraphBuilder
pub fn new() -> Self
pub fn add_entity( &mut self, id: String, entity_type: String, properties: HashMap<String, Value>, ) -> Result<()>
pub fn add_relationship( &mut self, from: String, to: String, rel_type: String, properties: HashMap<String, Value>, ) -> Result<()>
pub fn build(self) -> KnowledgeGraph
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphBuilder
impl RefUnwindSafe for GraphBuilder
impl Send for GraphBuilder
impl Sync for GraphBuilder
impl Unpin for GraphBuilder
impl UnwindSafe for GraphBuilder
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