- 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
25 lines
640 B
Rust
25 lines
640 B
Rust
use domain::models::ScheduleConfig;
|
|
use domain::value_objects::{ChannelId, RecyclePolicy, UserId};
|
|
|
|
pub struct CreateChannelCommand {
|
|
pub owner_id: UserId,
|
|
pub name: String,
|
|
pub timezone: String,
|
|
}
|
|
|
|
pub struct UpdateChannelCommand {
|
|
pub channel_id: ChannelId,
|
|
pub owner_id: UserId,
|
|
pub name: Option<String>,
|
|
pub description: Option<Option<String>>,
|
|
pub timezone: Option<String>,
|
|
pub schedule_config: Option<ScheduleConfig>,
|
|
pub recycle_policy: Option<RecyclePolicy>,
|
|
pub auto_schedule: Option<bool>,
|
|
}
|
|
|
|
pub struct DeleteChannelCommand {
|
|
pub channel_id: ChannelId,
|
|
pub owner_id: UserId,
|
|
}
|