Skip to content

Commit 2203584

Browse files
authored
refactor: Removed Option<> nesting in Query results (#15)
1 parent f422a02 commit 2203584

File tree

5 files changed

+5
-29
lines changed

5 files changed

+5
-29
lines changed

.github/workflows/compliance.yaml

-15
This file was deleted.

.github/workflows/release.yml

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Semantic Release
22
on:
3-
push:
4-
branches:
5-
- master
6-
- beta
73
workflow_dispatch:
84

95
env:

.github/workflows/test.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
name: "Cargo Tests"
22
on:
33
pull_request:
4-
types:
5-
- opened
6-
- edited
7-
- synchronize
8-
- reopened
94

105
env:
116
CARGO_TERM_COLOR: always

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/v2/collection.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,10 @@ pub struct QueryOptions<'a> {
392392
#[derive(Deserialize, Debug)]
393393
pub struct QueryResult {
394394
pub ids: Vec<Vec<String>>,
395-
pub metadatas: Option<Vec<Option<Vec<Option<Metadata>>>>>,
396-
pub documents: Option<Vec<Option<Vec<Option<String>>>>>,
397-
pub embeddings: Option<Vec<Option<Vec<Embedding>>>>,
398-
pub distances: Option<Vec<Option<Vec<f32>>>>,
395+
pub metadatas: Option<Vec<Vec<Option<Metadata>>>>,
396+
pub documents: Option<Vec<Vec<String>>>,
397+
pub embeddings: Option<Vec<Vec<Embedding>>>,
398+
pub distances: Option<Vec<Vec<f32>>>,
399399
}
400400

401401
#[derive(Serialize, Debug, Default)]

0 commit comments

Comments
 (0)