client-api: Fix type of rank in search::search_events::v3::SearchResult

It is defined in the spec as a number, not an integer.
This commit is contained in:
Kévin Commaille 2023-03-09 20:32:27 +01:00 committed by Kévin Commaille
parent 0596e46045
commit 8a3bccaef1
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,10 @@
# [unreleased]
Breaking changes:
- Define `rank` as an `Option<f64>` instead of an `Option<UInt>` in
`search::search_events::v3::SearchResult`
Improvements:
- Add convenience constructors for enabling lazy-loading in filters

View File

@ -435,7 +435,7 @@ pub mod v3 {
///
/// Higher is closer.
#[serde(skip_serializing_if = "Option::is_none")]
pub rank: Option<UInt>,
pub rank: Option<f64>,
/// The event that matched.
#[serde(skip_serializing_if = "Option::is_none")]