pub fn new_simple_with_vars(
        title: impl Into<String>,
        message: impl Into<String>,
        vars: &HashMap<&'static str, String>,
    ) -> Self {
        let mut message: String = message.into();

        for (key, var_value) in vars {
            message = message.replace(key, var_value);
        }

        Message::Simple {
            title: title.into(),
            message,
        }
    }
/// Create a new simple message with template variable replacements (e.g. `$PROJECT_NAME`).
Create a new simple message with template variable replacements .
Create a new simple message with template variable replacements .
pub fn new_simple_with_vars(
        title: impl Into<String>,
        message: impl Into<String>,
        vars: &HashMap<&'static str, String>,
    ) -> Self {
        let mut message: String = message.into();
        for (key, var_value) in vars {
            message = message.replace(key, var_value);
        }
        Message::Simple {
            title: title.into(),
            message,
        }
    }
pub fn new_simple_with_vars ( title : impl Into < String > , message : impl Into < String > , vars : & HashMap < & ' static str , String > , ) -> Self { let mut message : String = message . into ( ) ; for ( key , var_value ) in vars { message = message . replace ( key , var_value ) ; } Message :: Simple { title : title . into ( ) , message , } }
Create a new simple message with template variable replacements (e.g.
Create a new simple message with template variable replacements ( e . g .
title
impl Into<String>
message
impl Into<String>
vars
&HashMap<&'static str, String>
title
impl Into<String>
message
impl Into<String>
vars
&HashMap<&'static str, String>