config.Workspace.from_yaml_strict
This type appears in public signatures. It is not a package entry point.
-
Parse as
Self::from_yamldoes, refusing a key that is neither this parser's own vocabulary nor tmuxp's, unless it starts withx-.Description#
This is the policy the
tmux-workspacecommand applies to every document it loads.Errors
What
Self::from_yamlreturns, and also an unrecognized key.Examples#
use tmux_workspace::Workspace;let error = Workspace::from_yaml_strict("session_name: demo\nwindows: []\nfrobnicate: 1\n").expect_err("an unrecognized key is refused");assert!(error.to_string().contains("frobnicate"));