-
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 <awesomeorji@gmail.com>
- Loading branch information
1 parent
5c5a52d
commit 94e7b72
Showing
3 changed files
with
27 additions
and
1 deletion.
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
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, | ||
} |