pub struct AppConfig {
pub app_name: String,
pub window_width: u32,
pub window_height: u32,
pub fullscreen: bool,
pub vsync: bool,
pub max_fps: Option<u32>,
pub log_directory: Option<PathBuf>,
}Expand description
Configuration for the application window and rendering.
Fields§
§app_name: StringThe window title.
window_width: u32The window width in pixels.
window_height: u32The window height in pixels.
fullscreen: boolWhether to start in fullscreen mode.
vsync: boolWhether to enable vsync for the renderer.
max_fps: Option<u32>Optional maximum frames per second. If None, defaults to 300 Hz.
log_directory: Option<PathBuf>Optional directory for log files. If None, uses the home directory as default.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnsafeUnpin for AppConfig
impl UnwindSafe for AppConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more