pub fn serde_option<T>(option: Option<T>) -> String
where
    T: ToString,
{
    match option {
        Some(v) => v.to_string(),
        None => "none".to_string(),
    }
}
/// Serializes an option into a string
Serializes an option into a string
Serializes an option into a string
pub fn serde_option<T>(option: Option<T>) -> String
where
    T: ToString,
{
    match option {
        Some(v) => v.to_string(),
        None => "none".to_string(),
    }
}
pub fn serde_option < T > ( option : Option < T > ) -> String where T : ToString , { match option { Some ( v ) => v . to_string ( ) , None => " " . to_string ( ) , } }
Serializes an option into a string
Serializes an option into a string
option
Option<T>
option
Option<T>