Skip to main content

tokmd_analysis_types/
assets.rs

1//! Asset receipt DTOs.
2//!
3//! These contract types remain re-exported from the crate root to preserve
4//! existing `tokmd_analysis_types::...` names.
5
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Clone, Serialize, Deserialize)]
9pub struct AssetReport {
10    pub total_files: usize,
11    pub total_bytes: u64,
12    pub categories: Vec<AssetCategoryRow>,
13    pub top_files: Vec<AssetFileRow>,
14}
15
16#[derive(Debug, Clone, Serialize, Deserialize)]
17pub struct AssetCategoryRow {
18    pub category: String,
19    pub files: usize,
20    pub bytes: u64,
21    pub extensions: Vec<String>,
22}
23
24#[derive(Debug, Clone, Serialize, Deserialize)]
25pub struct AssetFileRow {
26    pub path: String,
27    pub bytes: u64,
28    pub category: String,
29    pub extension: String,
30}