pub struct ToGraph {
pub documents: Vec<Document>,
pub edge_field: String,
}Expand description
Convert a document corpus into a fresh MemoryGraphStore.
One vertex per document under graph default, one directed
link-labeled edge for each id listed under edge_field. Document
fields outside edge_field are copied into the vertex’s
properties.
Fields§
§documents: Vec<Document>§edge_field: StringImplementations§
Source§impl ToGraph
impl ToGraph
pub fn new(documents: Vec<Document>) -> Self
pub fn edge_field(self, name: impl Into<String>) -> Self
pub fn execute(self) -> CrossParadigmResult<MemoryGraphStore>
Auto Trait Implementations§
impl Freeze for ToGraph
impl RefUnwindSafe for ToGraph
impl Send for ToGraph
impl Sync for ToGraph
impl Unpin for ToGraph
impl UnsafeUnpin for ToGraph
impl UnwindSafe for ToGraph
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