application: config_snapshots, admin, providers, iptv
This commit is contained in:
20
crates/application/src/config_snapshots/commands.rs
Normal file
20
crates/application/src/config_snapshots/commands.rs
Normal file
@@ -0,0 +1,20 @@
|
||||
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