Upgrade strum
to v0.26 (#22633)
This PR upgrades `strum` to v0.26. Supersedes #21896. Release Notes: - N/A
This commit is contained in:
parent
4bd5f0d355
commit
04cf19d49a
3 changed files with 25 additions and 31 deletions
|
@ -1,7 +1,7 @@
|
|||
use crate::proto;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use serde_json::{map, Value};
|
||||
use strum::{EnumVariantNames, VariantNames as _};
|
||||
use strum::VariantNames;
|
||||
|
||||
const KIND: &str = "kind";
|
||||
const ENTITY_ID: &str = "entity_id";
|
||||
|
@ -15,7 +15,7 @@ const ENTITY_ID: &str = "entity_id";
|
|||
/// Most notification types have a special field which is aliased to
|
||||
/// `entity_id`. This field is stored in its own database column, and can
|
||||
/// be used to query the notification.
|
||||
#[derive(Debug, Clone, PartialEq, Eq, EnumVariantNames, Serialize, Deserialize)]
|
||||
#[derive(Debug, Clone, PartialEq, Eq, VariantNames, Serialize, Deserialize)]
|
||||
#[serde(tag = "kind")]
|
||||
pub enum Notification {
|
||||
ContactRequest {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue