@@ -5,16 +5,15 @@ use utoipa::ToSchema;
55use crate :: models:: curseforge:: entities:: { Author , FileIndex , Links , Logo , ScreenShot } ;
66
77use crate :: models:: curseforge:: entities:: {
8- Category , CategoryInfo , File , FileInfo , Fingerprint , Mod ,
8+ Category , CategoryInfo , File , FileInfo , Mod ,
99} ;
1010
1111#[ derive( Debug , Serialize , Deserialize , Clone , ToSchema ) ]
1212pub struct FingerprintResult {
1313 #[ serde( rename = "isCacheBuilt" ) ]
1414 pub is_cache_built : bool ,
1515 #[ serde( rename = "exactMatches" ) ]
16- // pub exact_matches: Vec<FingerprintResponseObject>,
17- pub exact_matches : Vec < Fingerprint > ,
16+ pub exact_matches : Vec < SingleFingerprintResponse > ,
1817 #[ serde( rename = "exactFingerprints" ) ]
1918 pub exact_fingerprints : Vec < i64 > ,
2019 #[ serde( rename = "installedFingerprints" ) ]
@@ -23,6 +22,17 @@ pub struct FingerprintResult {
2322 pub unmatched_fingerprints : Vec < i64 > ,
2423}
2524
25+ #[ derive( Debug , Serialize , Deserialize , Clone , ToSchema ) ]
26+ pub struct SingleFingerprintResponse {
27+ pub id : i32 ,
28+ pub file : FileInfo ,
29+ #[ serde( rename = "latestFiles" ) ]
30+ pub latest_files : Vec < FileInfo > ,
31+
32+ pub sync_at : DateTime < Utc > ,
33+ }
34+
35+
2636// #[derive(Debug, Serialize, Deserialize, Clone, ToSchema)]
2737// pub struct _FileSortableGameVersions {
2838// #[serde(rename = "gameVersionName")]
0 commit comments