From 6197533030c475f9c4c9512c9245b523488e1985 Mon Sep 17 00:00:00 2001 From: bbrunell Date: Mon, 1 Dec 2025 00:33:34 +0100 Subject: [PATCH] Add genres field to IncompleteMovie struct Add the missing genre field to the code samples --- .code-samples.meilisearch.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.code-samples.meilisearch.yaml b/.code-samples.meilisearch.yaml index 35ab1b6c..3527d5b7 100644 --- a/.code-samples.meilisearch.yaml +++ b/.code-samples.meilisearch.yaml @@ -168,7 +168,8 @@ add_or_update_documents_1: |- #[derive(Serialize, Deserialize)] struct IncompleteMovie { id: usize, - title: String + title: String, + genres: String } let task: TaskInfo = client @@ -176,7 +177,8 @@ add_or_update_documents_1: |- .add_or_update(&[ IncompleteMovie { id: 287947, - title: "Shazam ⚡️".to_string() + title: "Shazam ⚡️".to_string(), + genres: "comedy".to_string() } ], None) .await