refactor(application): strip comments, DRY ownership check + parse_content_type
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user