Skip to content

Commit 6197533

Browse files
committed
Add genres field to IncompleteMovie struct
Add the missing genre field to the code samples
1 parent 2449b6a commit 6197533

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.code-samples.meilisearch.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,15 +168,17 @@ add_or_update_documents_1: |-
168168
#[derive(Serialize, Deserialize)]
169169
struct IncompleteMovie {
170170
id: usize,
171-
title: String
171+
title: String,
172+
genres: String
172173
}
173174
174175
let task: TaskInfo = client
175176
.index("movies")
176177
.add_or_update(&[
177178
IncompleteMovie {
178179
id: 287947,
179-
title: "Shazam ⚡️".to_string()
180+
title: "Shazam ⚡️".to_string(),
181+
genres: "comedy".to_string()
180182
}
181183
], None)
182184
.await

0 commit comments

Comments
 (0)