pub struct General {
pub working_directory: Option<PathBuf>,
pub workspace: Option<String>,
pub layout: Layout,
}
Expand description
The general configuration section.
This section defines how a project behaves in general.
Fields§
§working_directory: Option<PathBuf>
The working directory defines in which directory-context the applications should be launched in.
workspace: Option<String>
If the workspace is Some
, i3
will be instructed to open the layout on the specified
workspace. If it is None
, i3
will use the currently focused workspace.
layout: Layout
The layout to append to a workspace.
This should either be:
- the quasi-JSON as returned by
i3-save-tree
- or a file-path containing the quasi-JSON as returned by
i3-save-tree
.
Either one will be passed to append_layout
.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for General
impl<'de> Deserialize<'de> for General
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
impl Eq for General
impl StructuralPartialEq for General
Auto Trait Implementations§
impl Freeze for General
impl RefUnwindSafe for General
impl Send for General
impl Sync for General
impl Unpin for General
impl UnwindSafe for General
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