Skip to content

Commit 2f8597b

Browse files
committed
fix: categories.0.iconUrl could be null
1 parent 7592f96 commit 2f8597b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/models/curseforge/entities.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub struct Category {
1616
pub slug: Option<String>,
1717
pub url: String,
1818
#[serde(rename = "iconUrl")]
19-
pub icon_url: String,
19+
pub icon_url: Option<String>,
2020
#[serde(
2121
rename = "dateModified",
2222
deserialize_with = "chrono_datetime_as_bson_datetime::deserialize"

src/models/curseforge/responses.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub struct Category {
1313
pub game_id: i32,
1414
pub name: String,
1515
pub slug: Option<String>,
16-
pub url: String,
16+
pub url: Option<String>,
1717
#[serde(rename = "iconUrl")]
1818
pub icon_url: String,
1919
#[serde(rename = "dateModified")]

0 commit comments

Comments
 (0)