Skip to main content

write

Function write 

Source
pub fn write(path: &Path, profile: &Profile) -> Result<(), Error>
Expand description

Serialize profile to TOML and write it to path, creating any missing parent directories.

§Errors

Returns Error::Io on filesystem failures and Error::Serialize if the profile cannot be serialized (currently unreachable, but kept for schema additions that may later hit serde’s serialize path).