//! Component view structs for read model
//!//! These structs provide a flattened, query-optimized view of component data.
/// View representation of a software component
#[derive(Debug, Clone)]pubstructComponentView{/// BOM reference identifier
pubbom_ref: String,
/// Component name
pubname: String,
/// Component version
pubversion: String,
/// Package URL (purl)
pubpurl: String,
/// License information
publicense:Option<LicenseView>,
/// Component description
pubdescription:Option<String>,
/// SHA256 hash of the component
pubsha256_hash:Option<String>,
/// Whether this is a direct dependency
pubis_direct_dependency:bool,
}/// View representation of license information
#[derive(Debug, Clone)]pubstructLicenseView{/// SPDX license identifier
pubspdx_id:Option<String>,
/// License name
pubname: String,
}