Struct biome_project::NodeJsProject
source · pub struct NodeJsProject {
pub manifest_path: PathBuf,
pub manifest: PackageJson,
pub diagnostics: Vec<Diagnostic>,
}Expand description
A Node.js project.
Fields§
§manifest_path: PathBufThe path where the project
manifest: PackageJsonThe package.json manifest
diagnostics: Vec<Diagnostic>Diagnostics emitted during the operations
Implementations§
Trait Implementations§
source§impl Clone for NodeJsProject
impl Clone for NodeJsProject
source§fn clone(&self) -> NodeJsProject
fn clone(&self) -> NodeJsProject
Returns a copy of the value. Read more
1.0.0 · 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 NodeJsProject
impl Debug for NodeJsProject
source§impl Default for NodeJsProject
impl Default for NodeJsProject
source§fn default() -> NodeJsProject
fn default() -> NodeJsProject
Returns the “default value” for a type. Read more
source§impl Project for NodeJsProject
impl Project for NodeJsProject
type Manifest = PackageJson
source§fn deserialize_manifest(
&mut self,
content: &<<Self::Manifest as Manifest>::Language as Language>::Root
)
fn deserialize_manifest( &mut self, content: &<<Self::Manifest as Manifest>::Language as Language>::Root )
Use this function to prepare the project, like loading the manifest.
source§fn project_path(&self) -> &Path
fn project_path(&self) -> &Path
The home directory of the project
fn manifest(&self) -> Option<&Self::Manifest>
fn analyze(&self) -> ProjectAnalyzeResult
fn has_errors(&self) -> bool
Auto Trait Implementations§
impl Freeze for NodeJsProject
impl RefUnwindSafe for NodeJsProject
impl Send for NodeJsProject
impl Sync for NodeJsProject
impl Unpin for NodeJsProject
impl UnwindSafe for NodeJsProject
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