pub fn serialize_none_as_empty_string_or_to_string<T, S>(
    v: &Option<T>,
    serializer: S
) -> Result<S::Ok, S::Error>where
    S: Serializer,
    T: ToString,
Expand description

serialize an option value with a ToString implementation where None is represented as an empty string

Errors

this should not return any errors