pub struct Context {
pub database_url: String,
pub project_root: PathBuf,
pub project_id: String,
pub quiet: bool,
pub falkordb: Option<FalkorConfig>,
pub qdrant: Option<QdrantConfig>,
pub embedding: Option<EmbeddingConfig>,
pub code_vectors: CodeVectorSettings,
pub daemon_url: Option<String>,
}Expand description
Resolved runtime context for gcode commands.
Fields§
§database_url: StringPostgreSQL hub DSN
project_root: PathBufProject root directory
project_id: StringProject ID (from .gobby/project.json or DB lookup)
quiet: boolSuppress warnings
falkordb: Option<FalkorConfig>FalkorDB config (None if unavailable)
qdrant: Option<QdrantConfig>Qdrant config (None if unavailable)
embedding: Option<EmbeddingConfig>Embedding API config (None if unavailable → no semantic search)
code_vectors: CodeVectorSettingsCode-symbol vector projection settings owned by gcode.
daemon_url: Option<String>Gobby daemon base URL (e.g. http://localhost:60887)
Implementations§
Source§impl Context
impl Context
Sourcepub fn resolve(project_override: Option<&str>, quiet: bool) -> Result<Self>
pub fn resolve(project_override: Option<&str>, quiet: bool) -> Result<Self>
Resolve context from CLI args and filesystem state.
Sourcepub fn resolve_for_project_id(project_id: &str, quiet: bool) -> Result<Self>
pub fn resolve_for_project_id(project_id: &str, quiet: bool) -> Result<Self>
Resolve service config for a caller-supplied project id without touching cwd identity.
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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