[][src]Function oauth2::helpers::serialize_space_delimited_vec

pub fn serialize_space_delimited_vec<T, S>(
    vec_opt: &Option<Vec<T>>,
    serializer: S
) -> Result<S::Ok, S::Error> where
    T: AsRef<str>,
    S: Serializer

Serde space-delimited string serializer for an Option<Vec<String>>.

This function serializes a string vector into a single space-delimited string. If string_vec_opt is None, the function serializes it as None (e.g., null in the case of JSON serialization).