pub fn credential_path(path: &Path, home: Option<&Path>) -> String
The credential’s path as the unit names it: %h/... under the home directory, else absolute; escaped for a unit file either way.
%h/...