config.Workspace.to_yaml
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
-
Render this workspace as tmuxp-style YAML.
Emits the keys this crate acts on and nothing else, so a document that came from
Self::from_yamland 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);Discussed in Use the Rust workspace builder , Rust workspace builder behavior , Rust workspace builder API