You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mediarepo/mediarepo-daemon/mediarepo-core/src/context.rs

13 lines
238 B
Rust

use std::sync::Arc;
use sea_orm::DatabaseConnection;
use tokio::sync::Mutex;
use crate::settings::Settings;
#[derive(Clone, Default)]
pub struct Context {
pub settings: Arc<Mutex<Settings>>,
pub database: DatabaseConnection,
}