job: derive PartialEq for Action

This makes it possible to compare action priorities in Rust code.
This commit is contained in:
Alexander Krotov
2020-04-22 22:32:47 +03:00
parent 220500efbb
commit 66d5c3f620

View File

@@ -75,7 +75,19 @@ impl Default for Thread {
}
}
#[derive(Debug, Display, Copy, Clone, PartialEq, Eq, FromPrimitive, ToPrimitive, FromSql, ToSql)]
#[derive(
Debug,
Display,
Copy,
Clone,
PartialEq,
Eq,
PartialOrd,
FromPrimitive,
ToPrimitive,
FromSql,
ToSql,
)]
#[repr(i32)]
pub enum Action {
Unknown = 0,