fn unparse_tags(tags: &Option<Tags<'a>>) -> Option<String> {
        if let Some(tags) = tags {
            if !tags.is_empty() {
                let mut raw = String::from("@");

                for (key, val) in tags {
                    raw.push_str(key);
                    raw.push('=');
                    raw.push_str(&format!("{}", val));
                    raw.push(';');
                }

                raw.pop();
                raw.push(' ');

                Some(raw)
            } else {
                None
            }
        } else {
            None
        }
    }
/// Helper function for unparsing message tags.
/// [`Tags`] doesn't store the original order of items!
Helper function for unparsing message tags.
[`Tags`] doesn't store the original order of items!
Helper function for unparsing message tags . [ ` Tags ` ] doesn ' t store the original order of items!
fn unparse_tags(tags: &Option<Tags<'a>>) -> Option<String> {
        if let Some(tags) = tags {
            if !tags.is_empty() {
                let mut raw = String::from("@");
                for (key, val) in tags {
                    raw.push_str(key);
                    raw.push('=');
                    raw.push_str(&format!("{}", val));
                    raw.push(';');
                }
                raw.pop();
                raw.push(' ');
                Some(raw)
            } else {
                None
            }
        } else {
            None
        }
    }
fn unparse_tags ( tags : & Option < Tags < ' a > > ) -> Option < String > { if let Some ( tags ) = tags { if ! tags . is_empty ( ) { let mut raw = String :: from ( " " ) ; for ( key , val ) in tags { raw . push_str ( key ) ; raw . push ( '=' ) ; raw . push_str ( & format ! ( " " val ) ) ; raw . push ( ';' ) ; } raw . pop ( ) ; raw . push ( ' ' ) ; Some ( raw ) } else { None } } else { None } }
Helper function for unparsing message tags.
Helper function for unparsing message tags .
tags
&Option<Tags<'a>>
tags
&Option<Tags<'a>>