pub fn serialize<T, S>(
    option: &Option<T>,
    serializer: S
) -> Result<S::Ok, S::Error> where
    T: AsRef<str>,
    S: Serializer
Expand description

Serialize a string from Option<T> using AsRef<str> or using the empty string if None.