provenant/output_schema/
license_clarity_score.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
4pub struct OutputLicenseClarityScore {
5 pub score: usize,
6 pub declared_license: bool,
7 pub identification_precision: bool,
8 pub has_license_text: bool,
9 pub declared_copyrights: bool,
10 pub conflicting_license_categories: bool,
11 pub ambiguous_compound_licensing: bool,
12}
13
14impl From<&crate::models::LicenseClarityScore> for OutputLicenseClarityScore {
15 fn from(value: &crate::models::LicenseClarityScore) -> Self {
16 Self {
17 score: value.score,
18 declared_license: value.declared_license,
19 identification_precision: value.identification_precision,
20 has_license_text: value.has_license_text,
21 declared_copyrights: value.declared_copyrights,
22 conflicting_license_categories: value.conflicting_license_categories,
23 ambiguous_compound_licensing: value.ambiguous_compound_licensing,
24 }
25 }
26}