Fix synopsis being optional

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 2 years ago
parent c6c127edbb
commit 34d5d35953
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

2
Cargo.lock generated

@ -4,7 +4,7 @@ version = 3
[[package]]
name = "animethemes-rs"
version = "0.4.2"
version = "0.4.3"
dependencies = [
"reqwest",
"serde",

@ -16,7 +16,7 @@ pub struct Anime {
pub slug: String,
pub year: u16,
pub season: AnimeSeason,
pub synopsis: String,
pub synopsis: Option<String>,
#[serde(alias = "animesynonyms")]
pub synonyms: Option<Vec<AnimeSynonym>>,
#[serde(alias = "animethemes")]
@ -120,6 +120,7 @@ pub struct Video {
pub link: String,
#[serde(alias = "animethemeentries")]
pub entries: Option<Vec<ThemeEntry>>,
pub tags: Option<String>,
}
#[derive(Debug, Clone, Deserialize)]

@ -6,10 +6,13 @@ async fn it_searches() {
let client = AnimeThemesClient::default();
let result = client
.search(
"paripi",
"re:zero",
&[],
SearchIncludes {
anime: AnimeInclude::default().images().series(),
anime: AnimeInclude::default()
.themes()
.themes_entries()
.themes_entries_videos(),
..Default::default()
},
)

Loading…
Cancel
Save