- delete clippy.toml (too-many-arguments-threshold=20 hack) - ChannelRow/MediaItemRow/LibraryItemRow structs for from_persistence - SnapshotId/ActivityEventId/PlaybackRecordId newtypes - DomainError variants use ChannelId/UserId instead of Uuid - ActivityEvent.channel_id: Option<ChannelId> not Option<Uuid> - InMemory repos key on newtype IDs - AlgorithmicParams struct for schedule engine - update all adapters/application/presentation callers
18 lines
382 B
Rust
18 lines
382 B
Rust
use domain::value_objects::{ChannelId, SnapshotId};
|
|
|
|
pub struct SaveSnapshotCommand {
|
|
pub channel_id: ChannelId,
|
|
pub label: Option<String>,
|
|
}
|
|
|
|
pub struct PatchLabelCommand {
|
|
pub channel_id: ChannelId,
|
|
pub snapshot_id: SnapshotId,
|
|
pub label: Option<String>,
|
|
}
|
|
|
|
pub struct RestoreSnapshotCommand {
|
|
pub channel_id: ChannelId,
|
|
pub snapshot_id: SnapshotId,
|
|
}
|