Upgrade strum to v0.26 (#22633)

This PR upgrades `strum` to v0.26.

Supersedes #21896.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-01-03 17:23:06 -05:00 committed by GitHub
parent 4bd5f0d355
commit 04cf19d49a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 31 deletions

View file

@ -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 {