chore: make optional fields optional (#758)

* chore: make optional fields optional

* chore: update docs
This commit is contained in:
Medcl
2025-07-10 18:06:05 +08:00
committed by GitHub
parent b17949fe29
commit 5b034c28ac
2 changed files with 3 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ Information about release notes of Coco Server is provided here.
- chore: bump dep applications-rs #751
- chore: rename QuickLink/quick_link to Quicklink/quicklink #752
- chore: assistant params & styles #753
- chore: make optional fields optional #758
## 0.6.0 (2025-06-29)

View File

@@ -7,8 +7,8 @@ use std::error::Error;
#[derive(Debug, Serialize, Deserialize)]
pub struct SearchResponse<T> {
pub took: u64,
pub timed_out: bool,
pub took: Option<u64>,
pub timed_out: Option<bool>,
pub _shards: Option<Shards>,
pub hits: Hits<T>,
}