-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: samuel orji <[email protected]>
- Loading branch information
1 parent
5a70fe5
commit 8fce8f9
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use serde::Deserialize; | ||
|
||
#[derive(Deserialize, Debug)] | ||
#[doc = "Cluster information"] | ||
pub struct InfoResponse { | ||
name : String, | ||
cluster_name: String, | ||
cluster_uuid: String, | ||
version: OpenSearchVersionInfo, | ||
#[serde(rename = "tagline")] | ||
tag_line: String | ||
} | ||
|
||
#[derive(Deserialize, Debug)] | ||
pub struct OpenSearchVersionInfo { | ||
distribution: String, | ||
number: String, | ||
build_type: String, | ||
build_hash: String, | ||
build_date: String, | ||
build_snapshot: bool, | ||
lucene_version: String, | ||
minimum_wire_compatibility_version: String, | ||
minimum_index_compatibility_version: String | ||
} |