pub struct ProjectConfig {
pub config: ResolvedConfig,
pub path: Option<PathBuf>,
pub workspaces: Vec<WorkspaceInfo>,
pub workspace_diagnostics: Vec<WorkspaceDiagnostic>,
pub inputs: ConfigInputs,
/* private fields */
}Expand description
Resolved project config plus the config file path when one was loaded.
Fields§
§config: ResolvedConfigFully resolved config for the project.
path: Option<PathBuf>Path of the loaded config file; None when defaults were used.
workspaces: Vec<WorkspaceInfo>Workspace metadata discovered under the project root.
workspace_diagnostics: Vec<WorkspaceDiagnostic>Diagnostics from workspace discovery (undeclared or invalid members).
inputs: ConfigInputsThe plugin files, rule packs and autoDiscover directories that
config resolution read.
Implementations§
Source§impl ProjectConfig
impl ProjectConfig
Sourcepub fn without_workspace_metadata(self) -> Self
pub fn without_workspace_metadata(self) -> Self
Drop the workspace metadata of the load, so that a session built from this config discovers the workspaces again. A caller that changes the resolved config after the load uses this.
Trait Implementations§
Auto Trait Implementations§
impl Forget for ProjectConfig
impl Freeze for ProjectConfig
impl Move for ProjectConfig
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnsafeUnpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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