pub struct CodebaseContext {
pub id: String,
pub role: ContextRole,
pub path: String,
pub language: Option<String>,
pub graph: CodeGraph,
}Expand description
A single codebase loaded into a workspace.
Each context wraps a CodeGraph and carries metadata about the role it
plays, its root path on disk, and an optional language hint.
Fields§
§id: StringUnique identifier within the workspace (e.g., "ctx-1").
role: ContextRoleRole this codebase plays in the workspace.
path: StringRoot path of the codebase on disk.
language: Option<String>Primary language of the codebase, if known.
graph: CodeGraphThe parsed code graph.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodebaseContext
impl RefUnwindSafe for CodebaseContext
impl Send for CodebaseContext
impl Sync for CodebaseContext
impl Unpin for CodebaseContext
impl UnsafeUnpin for CodebaseContext
impl UnwindSafe for CodebaseContext
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