diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-27 15:50:46 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-27 15:50:46 +0200 |
commit | 466055d9b38546d29229ce0ab1c8e682868a5de3 (patch) | |
tree | 07dc6ce844c0b16aa1d602b923b99e21d8d91a23 | |
parent | b0b35e87154ae5d5c1e78ece5090d29dbabfff1a (diff) | |
download | jellything-466055d9b38546d29229ce0ab1c8e682868a5de3.tar jellything-466055d9b38546d29229ce0ab1c8e682868a5de3.tar.bz2 jellything-466055d9b38546d29229ce0ab1c8e682868a5de3.tar.zst |
option type_id for musicbrainz stuff
-rw-r--r-- | import/src/musicbrainz.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/import/src/musicbrainz.rs b/import/src/musicbrainz.rs index 4425956..7f9b8a1 100644 --- a/import/src/musicbrainz.rs +++ b/import/src/musicbrainz.rs @@ -107,8 +107,8 @@ pub struct MbRelation { #[serde(rename_all = "kebab-case")] pub struct MbSeries { pub id: String, - pub r#type: String, - pub type_id: String, + pub r#type: Option<String>, + pub type_id: Option<String>, pub name: String, pub disambiguation: String, } @@ -145,8 +145,8 @@ pub struct MbWork { #[serde(rename_all = "kebab-case")] pub struct MbEvent { pub id: String, - pub r#type: String, - pub type_id: String, + pub r#type: Option<String>, + pub type_id: Option<String>, pub name: String, pub time: String, pub cancelled: bool, |