pub struct ProjectGraph {
pub version: u32,
pub name: String,
pub files: Vec<ProjectFile>,
pub packages: Vec<DependencyRef>,
pub entrypoints: Vec<Entrypoint>,
pub nodes: IndexMap<String, GraphNode>,
pub edges: Vec<GraphEdge>,
pub build_system: Option<String>,
pub test_framework: Option<String>,
}Expand description
Complete project graph.
Fields§
§version: u32Schema version.
name: StringProject name hint.
files: Vec<ProjectFile>Files.
packages: Vec<DependencyRef>Packages / dependencies.
entrypoints: Vec<Entrypoint>Entrypoints.
nodes: IndexMap<String, GraphNode>Nodes.
edges: Vec<GraphEdge>Edges.
build_system: Option<String>Build system hint (npm, cargo, …).
test_framework: Option<String>Test framework hint.
Implementations§
Source§impl ProjectGraph
impl ProjectGraph
Sourcepub fn source_file_count(&self) -> usize
pub fn source_file_count(&self) -> usize
Count source files.
Sourcepub fn test_file_count(&self) -> usize
pub fn test_file_count(&self) -> usize
Count test files.
Trait Implementations§
Source§impl Clone for ProjectGraph
impl Clone for ProjectGraph
Source§impl Debug for ProjectGraph
impl Debug for ProjectGraph
Source§impl<'de> Deserialize<'de> for ProjectGraph
impl<'de> Deserialize<'de> for ProjectGraph
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProjectGraph
impl RefUnwindSafe for ProjectGraph
impl Send for ProjectGraph
impl Sync for ProjectGraph
impl Unpin for ProjectGraph
impl UnsafeUnpin for ProjectGraph
impl UnwindSafe for ProjectGraph
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