refactor(application): strip comments, DRY ownership check + parse_content_type

This commit is contained in:
2026-07-12 04:10:58 +02:00
parent 98a54245b1
commit 9dcd169689
62 changed files with 56 additions and 203 deletions

View File

@@ -1,19 +1,16 @@
use uuid::Uuid;
/// Save a snapshot of the channel's current config.
pub struct SaveSnapshotCommand {
pub channel_id: Uuid,
pub label: Option<String>,
}
/// Update the label on an existing snapshot.
pub struct PatchLabelCommand {
pub channel_id: Uuid,
pub snapshot_id: Uuid,
pub label: Option<String>,
}
/// Restore a channel's config from a snapshot.
pub struct RestoreSnapshotCommand {
pub channel_id: Uuid,
pub snapshot_id: Uuid,