pub struct WorkspaceRuntime {
pub id: String,
pub root: Option<PathBuf>,
pub enabled: bool,
pub config: Arc<Config>,
pub health: WorkspaceHealth,
pub resolution: ResolutionMode,
}Expand description
In-memory runtime for one workspace: its id, root, resolved config, and health.
Fields§
§id: StringStable, user-facing workspace id ([A-Za-z0-9][A-Za-z0-9_-]*).
root: Option<PathBuf>Absolute workspace root, if known. None for the compat default runtime.
enabled: boolWhether the workspace accepts queries (a disabled workspace is listed by discovery but rejects search/get/sources — R7).
config: Arc<Config>The resolved effective config; its [db].path binds the store (R55–R58).
health: WorkspaceHealthCheap-validation health state.
resolution: ResolutionModeHow config was resolved (R4/R5), for the workspaces tool.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkspaceRuntime
impl RefUnwindSafe for WorkspaceRuntime
impl Send for WorkspaceRuntime
impl Sync for WorkspaceRuntime
impl Unpin for WorkspaceRuntime
impl UnsafeUnpin for WorkspaceRuntime
impl UnwindSafe for WorkspaceRuntime
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more