Skip to main content

serialize_path_normalized

Function serialize_path_normalized 

Source
pub fn serialize_path_normalized<S>(
    path: &Path,
    serializer: S,
) -> Result<S::Ok, S::Error>
where S: Serializer,
Expand description

Serde serializer for PathBuf fields: forward-slash normalized.

Use as #[serde(serialize_with = "crate::serialize_path_normalized")]