1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use std::sync::Arc;
// FIXME: crate内の参照の仕方ってこれでいいんだっけ?
use crate::log::Log;
use crate::repository::TrackRepository;
#[derive(Clone)]
pub struct RepositoryContainer {
pub track_repository: Arc<dyn TrackRepository + Sync + Send>,
}
#[derive(Clone)]
pub struct LogContainer {
pub log: Arc<dyn Log + Sync + Send>,
}
#[derive(Clone)]
pub struct Container {
pub repository_container: RepositoryContainer,
pub log_container: LogContainer,
}