pub struct GraphStoreConfig {
pub backend: GraphBackend,
pub default_namespace: Namespace,
pub default_y_layer: YLayer,
}Expand description
Configuration for graph store creation.
Fields§
§backend: GraphBackendWhich backend to use.
default_namespace: NamespaceDefault namespace (for Simple and KnowledgeGraph backends).
default_y_layer: YLayerDefault Y-layer (for Simple and KnowledgeGraph backends).
Implementations§
Source§impl GraphStoreConfig
impl GraphStoreConfig
Sourcepub fn new(backend: GraphBackend) -> Self
pub fn new(backend: GraphBackend) -> Self
Create config for a specific backend.
Sourcepub fn with_namespace(self, ns: Namespace) -> Self
pub fn with_namespace(self, ns: Namespace) -> Self
Set the default namespace.
Sourcepub fn with_y_layer(self, layer: YLayer) -> Self
pub fn with_y_layer(self, layer: YLayer) -> Self
Set the default Y-layer.
Trait Implementations§
Source§impl Clone for GraphStoreConfig
impl Clone for GraphStoreConfig
Source§fn clone(&self) -> GraphStoreConfig
fn clone(&self) -> GraphStoreConfig
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 GraphStoreConfig
impl Debug for GraphStoreConfig
Auto Trait Implementations§
impl Freeze for GraphStoreConfig
impl RefUnwindSafe for GraphStoreConfig
impl Send for GraphStoreConfig
impl Sync for GraphStoreConfig
impl Unpin for GraphStoreConfig
impl UnsafeUnpin for GraphStoreConfig
impl UnwindSafe for GraphStoreConfig
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