rename fields correctly

This commit is contained in:
Brandon Thomas committed 2022-03-05 06:00:47 -05:00
1 parent d7205ea3af
commit efe2bcd61d
1 file changed
+1 -3
@@ -18,15 +18,13 @@ use std::sync::Arc;
// =============== Request ===============
#[derive(Copy, Clone, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum KillAction {
/// Kill all "pending" jobs
#[serde(rename_all = "snake_case")]
AllPending,
/// Kill all "pending" and "attempt_failed" jobs
#[serde(rename_all = "snake_case")]
AllPendingAndFailed,
/// Kill "pending" jobs with priority_level = 0.
#[serde(rename_all = "snake_case")]
ZeroPriorityPending,
}