Skip to main content

libvault_rs/sys/
responses.rs

1use serde::Deserialize;
2
3#[derive(Debug, Deserialize, PartialEq)]
4pub struct HealthResponse {
5    pub cluster_id: String,
6    pub cluster_name: String,
7    pub initialized: bool,
8    pub performance_standby: bool,
9    pub replication_dr_mode: String,
10    pub replication_performance_mode: String,
11    pub sealed: bool,
12    pub server_time_utc: u64,
13    pub standby: bool,
14    pub version: String
15}
16
17#[derive(Debug, Deserialize, PartialEq)]
18pub struct LeaderResponse {
19    pub active_time: String,
20    pub ha_enabled: bool,
21    pub is_self: bool,
22    pub leader_address: String,
23    pub leader_cluster_address: String,
24    pub performance_standby: bool,
25    pub performance_standby_last_remote_wal: u64
26}