[][src]Struct i3nator::types::General

pub struct General {
    pub working_directory: Option<PathBuf>,
    pub workspace: Option<String>,
    pub layout: Layout,
}

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

impl Clone for General[src]

impl Debug for General[src]

impl<'de> Deserialize<'de> for General[src]

impl Eq for General[src]

impl PartialEq<General> for General[src]

impl StructuralEq for General[src]

impl StructuralPartialEq for General[src]

Auto Trait Implementations

impl RefUnwindSafe for General

impl Send for General

impl Sync for General

impl Unpin for General

impl UnwindSafe for General

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,