Replace name by uuid

This commit is contained in:
Mubelotix
2025-07-31 11:19:46 +02:00
parent 7c2c17129f
commit 53397e28fc
4 changed files with 117 additions and 81 deletions

View File

@ -1,6 +1,7 @@
use std::collections::BTreeMap;
use serde::{Deserialize, Serialize};
use uuid::Uuid;
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
#[serde(rename_all = "camelCase")]
@ -14,5 +15,5 @@ pub struct Webhook {
#[serde(rename_all = "camelCase")]
pub struct Webhooks {
#[serde(default)]
pub webhooks: BTreeMap<String, Webhook>,
pub webhooks: BTreeMap<Uuid, Webhook>,
}