pub struct CoreContext { /* private fields */ }Expand description
Resolved runtime context for any gobby-core consumer.
Implementations§
Source§impl CoreContext
impl CoreContext
Sourcepub fn build(
project_root: PathBuf,
project_id: String,
database_url: Option<String>,
source: &mut impl ConfigSource,
) -> Self
pub fn build( project_root: PathBuf, project_id: String, database_url: Option<String>, source: &mut impl ConfigSource, ) -> Self
Build a context from pre-resolved project identity and DSN inputs.
pub fn project_root(&self) -> &Path
pub fn project_id(&self) -> &str
pub fn database_url(&self) -> Option<&str>
pub fn falkordb(&self) -> Option<&FalkorConfig>
pub fn qdrant(&self) -> Option<&QdrantConfig>
pub fn embedding(&self) -> Option<&EmbeddingConfig>
pub fn daemon_url(&self) -> &str
Trait Implementations§
Source§impl Clone for CoreContext
impl Clone for CoreContext
Source§fn clone(&self) -> CoreContext
fn clone(&self) -> CoreContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CoreContext
impl Debug for CoreContext
Source§impl PartialEq for CoreContext
impl PartialEq for CoreContext
Source§fn eq(&self, other: &CoreContext) -> bool
fn eq(&self, other: &CoreContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CoreContext
impl StructuralPartialEq for CoreContext
Auto Trait Implementations§
impl Freeze for CoreContext
impl RefUnwindSafe for CoreContext
impl Send for CoreContext
impl Sync for CoreContext
impl Unpin for CoreContext
impl UnsafeUnpin for CoreContext
impl UnwindSafe for CoreContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.