clapdocs/scanner/
datamodel.rs1use serde::Deserialize;
2use std::path::Path;
3use std::path::PathBuf;
4
5#[derive(Debug)]
6pub struct Target {
7 pub readme_path: Option<PathBuf>,
8 pub project_path: PathBuf,
9 pub name: String,
10}
11
12pub struct ScanOptions<'a> {
13 pub root_dir: &'a Path,
14 pub recursive: bool,
15 pub readme_name: Option<&'a str>,
16}
17
18#[derive(Deserialize)]
19pub struct CargoToml {
20 pub package: Option<Package>,
21 pub dependencies: Option<toml::Value>,
22}
23
24#[derive(Deserialize)]
25pub struct Package {
26 pub name: String,
27}