mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-25 17:10:38 +00:00
initial
This commit is contained in:
@@ -70,6 +70,18 @@ pub enum LfcOffloadState {
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize, Default, Debug, Clone)]
|
||||
#[serde(tag = "status", rename_all = "snake_case")]
|
||||
pub enum PromoteState {
|
||||
#[default]
|
||||
NotPromoted,
|
||||
Promoting,
|
||||
Completed,
|
||||
Failed {
|
||||
error: String,
|
||||
},
|
||||
}
|
||||
|
||||
/// Response of the /status API
|
||||
#[derive(Serialize, Debug, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
|
||||
Reference in New Issue
Block a user