config.Workspace.to_yaml
This type appears in public signatures. It is not a package entry point.
-
Render this workspace as tmuxp-style YAML.
Description#
Emits the keys this crate acts on and nothing else, so a document that came from
Self::from_yaml()and back may be shorter than it started: what is dropped is whatunsupported_keysalready named.Examples#
use tmux_workspace::Workspace;let workspace = Workspace::from_yaml("session_name: demowindows:- window_name: editorpanes: [htop]",)?;// What it writes, it can read.assert_eq!(Workspace::from_yaml(&workspace.to_yaml())?, workspace);
Guides#
Pages that discuss to_yaml.