vc_runtime/config/model/global.rs
1//! Global configuration domain model.
2//!
3//! This module defines configuration that applies to the entire application,
4//! independent of any specific backend or profile.
5
6use serde::{Deserialize, Serialize};
7use std::path::PathBuf;
8
9/// Global configuration for the entire application.
10#[derive(Debug, Clone, Default, PartialEq, Eq, Serialize, Deserialize)]
11#[serde(default)]
12pub struct GlobalConfig {
13 /// Directory for caching generated artifacts (e.g., images, intermediate data).
14 pub cache_dir: Option<PathBuf>,
15
16 /// Directory for temporary files during rendering.
17 pub temp_dir: Option<PathBuf>,
18
19 /// Global log level (e.g., "info", "debug", "warn").
20 pub log_level: Option<String>,
21}