pub struct ProjectScan {Show 20 fields
pub root: PathBuf,
pub project_name: String,
pub identity: ProjectIdentity,
pub indicators: Vec<ProjectIndicator>,
pub languages: Vec<LanguageSummary>,
pub build_systems: Vec<BuildSystemSummary>,
pub code: CodeSummary,
pub dependencies: DependencySummary,
pub tests: TestSummary,
pub hygiene: ScanHygiene,
pub risks: RiskSummary,
pub health: HealthSummary,
pub documentation: DocumentationSummary,
pub license: LicenseSummary,
pub ci: CiSummary,
pub git: GitSummary,
pub containers: ContainerSummary,
pub files_scanned: usize,
pub skipped_dirs: Vec<PathBuf>,
pub report: ProjectReport,
}Fields§
§root: PathBuf§project_name: String§identity: ProjectIdentity§indicators: Vec<ProjectIndicator>§languages: Vec<LanguageSummary>§build_systems: Vec<BuildSystemSummary>§code: CodeSummary§dependencies: DependencySummary§tests: TestSummary§hygiene: ScanHygiene§risks: RiskSummary§health: HealthSummary§documentation: DocumentationSummary§license: LicenseSummary§ci: CiSummary§git: GitSummary§containers: ContainerSummary§files_scanned: usize§skipped_dirs: Vec<PathBuf>§report: ProjectReportImplementations§
Source§impl ProjectScan
impl ProjectScan
pub fn has_language(&self, kind: LanguageKind) -> bool
pub fn has_build_system(&self, kind: BuildSystemKind) -> bool
pub fn has_risk(&self, code: RiskCode) -> bool
pub fn risk(&self, code: RiskCode) -> Option<&RiskFinding>
Trait Implementations§
Source§impl Clone for ProjectScan
impl Clone for ProjectScan
Source§fn clone(&self) -> ProjectScan
fn clone(&self) -> ProjectScan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProjectScan
impl Debug for ProjectScan
Source§impl<'de> Deserialize<'de> for ProjectScan
impl<'de> Deserialize<'de> for ProjectScan
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
Source§impl PartialEq for ProjectScan
impl PartialEq for ProjectScan
Source§fn eq(&self, other: &ProjectScan) -> bool
fn eq(&self, other: &ProjectScan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProjectScan
impl Serialize for ProjectScan
impl Eq for ProjectScan
impl StructuralPartialEq for ProjectScan
Auto Trait Implementations§
impl Freeze for ProjectScan
impl RefUnwindSafe for ProjectScan
impl Send for ProjectScan
impl Sync for ProjectScan
impl Unpin for ProjectScan
impl UnsafeUnpin for ProjectScan
impl UnwindSafe for ProjectScan
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