klask/settings.rs
1/// Settings for klask.
2#[derive(Debug, Default, Clone, PartialEq, Eq)]
3pub struct Settings {
4 /// Pass None to disable. Pass Some with a description to enable.
5 /// Pass an empty String for no description.
6 pub enable_env: Option<String>,
7 /// Pass None to disable. Pass Some with a description to enable.
8 /// Pass an empty String for no description.
9 pub enable_stdin: Option<String>,
10 /// Pass None to disable. Pass Some with a description to enable.
11 /// Pass an empty String for no description.
12 pub enable_working_dir: Option<String>,
13 /// Pass a custom font to be used in the GUI.
14 /// ```ignore
15 /// let settings = Settings {
16 /// custom_font: Some(include_bytes!(r"FONT_PATH")),
17 /// ..Default::default()
18 /// };
19 ///```
20 pub custom_font: Option<&'static [u8]>,
21}