Function texcraft_stdext::serde_tools::serialize_str
source · pub fn serialize_str<T, S>(input: T, serializer: S) -> Result<S::Ok, S::Error>where
T: AsRef<str>,
S: Serializer,
Expand description
Function that serializes strings
This is intended for use with serde derive’s
#[serde(serialize_with = "path")]
field attribute.