mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 19:11:29 +00:00
rename fields correctly
This commit is contained in:
1 parent
d7205ea3af
commit
efe2bcd61d
1 file changed
+1
-3
+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,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user