You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
124: Standardize health method r=curquiza a=alallema
**Description**
Checking that method `health()` return `{'status': 'available'}` and added `is_healthy()` method who return boolean value
**Issue related**
meilisearch/integration-guides#55
**Some points of concern**
- I let `Health` struct like it was:
```rust
#[derive(Deserialize)]
pub struct Health {
pub status: String,
}
```
but I see we could write it this way too:
```rust
#[derive(Deserialize)]
#[serde(tag="status")]
pub enum Health {
#[serde(rename="available")]
Available
}
```
That's means API should return `'available'` and this could lead to more maintenance but it seemed to be more accurate.
Co-authored-by: alallema <[email protected]>
Co-authored-by: Amélie <[email protected]>
0 commit comments