pub struct EngineConfig {
pub home_dir: PathBuf,
pub user_guide_url: Option<String>,
pub initial_log: Option<PathBuf>,
pub initial_preferences: Option<PathBuf>,
pub preview_dialog: Option<String>,
}Expand description
Where the engine starts, and what it tells Help.
Fields§
§home_dir: PathBufThe user’s home folder, where the file dialogs start before a log is open.
user_guide_url: Option<String>The user manual page for Help > User Guide, if one is installed.
initial_log: Option<PathBuf>A log to open on ready, as the Qt app’s --load-log does.
initial_preferences: Option<PathBuf>A preference file to load on ready, as --load-preferences does.
preview_dialog: Option<String>A dialog for the page to open once the log is drawn (visible,
sides, colors, calibration), for screenshots of the app.
Trait Implementations§
Source§impl Clone for EngineConfig
impl Clone for EngineConfig
Source§fn clone(&self) -> EngineConfig
fn clone(&self) -> EngineConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineConfig
impl Debug for EngineConfig
Source§impl Default for EngineConfig
impl Default for EngineConfig
Source§fn default() -> EngineConfig
fn default() -> EngineConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EngineConfig
impl RefUnwindSafe for EngineConfig
impl Send for EngineConfig
impl Sync for EngineConfig
impl Unpin for EngineConfig
impl UnsafeUnpin for EngineConfig
impl UnwindSafe for EngineConfig
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