nexusmods: Fix File type
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux
This commit is contained in:
parent
2ad3fd0fc1
commit
a0fe5d3f81
2 changed files with 3 additions and 3 deletions
|
@ -117,7 +117,7 @@ impl Api {
|
||||||
let Some(file) = files
|
let Some(file) = files
|
||||||
.files
|
.files
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.find(|file| file.updated_timestamp == timestamp)
|
.find(|file| file.uploaded_timestamp == timestamp)
|
||||||
else {
|
else {
|
||||||
let err = Error::Custom("Timestamp does not match any file".into());
|
let err = Error::Custom("Timestamp does not match any file".into());
|
||||||
return Err(err);
|
return Err(err);
|
||||||
|
|
|
@ -77,13 +77,13 @@ pub struct File {
|
||||||
pub size: u64,
|
pub size: u64,
|
||||||
pub file_name: String,
|
pub file_name: String,
|
||||||
#[serde(with = "time::serde::timestamp")]
|
#[serde(with = "time::serde::timestamp")]
|
||||||
pub updated_timestamp: OffsetDateTime,
|
pub uploaded_timestamp: OffsetDateTime,
|
||||||
pub mod_version: String,
|
pub mod_version: String,
|
||||||
pub external_virus_scan_url: String,
|
pub external_virus_scan_url: String,
|
||||||
pub description: String,
|
pub description: String,
|
||||||
pub size_kb: u64,
|
pub size_kb: u64,
|
||||||
pub size_in_bytes: u64,
|
pub size_in_bytes: u64,
|
||||||
pub changelog_html: String,
|
pub changelog_html: Option<String>,
|
||||||
pub content_preview_link: String,
|
pub content_preview_link: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue