pub fn to_string(self, default: &Config) -> String {
        return format!(
            "(to: {}) {}",
            self.email.unwrap_or_else(|| format!(
                "{} (default)",
                default.clone().email.unwrap_or_else(|| "".to_owned())
            )),
            self.folder.unwrap_or_else(|| format!(
                "{} (default)",
                default.clone().folder.unwrap_or_else(|| "".to_owned())
            ))
        );
    }
/// Creates a string view of config.
/// More precisely, outputs the email address and folder in which entries are to be written
/// A default config is given for options set to None.
Creates a string view of config.
More precisely, outputs the email address and folder in which entries are to be written
A default config is given for options set to None.
Creates a string view of config . More precisely outputs the email address and folder in which entries are to be written A default config is given for options set to None .
pub fn to_string(self, default: &Config) -> String {
        return format!(
            "(to: {}) {}",
            self.email.unwrap_or_else(|| format!(
                "{} (default)",
                default.clone().email.unwrap_or_else(|| "".to_owned())
            )),
            self.folder.unwrap_or_else(|| format!(
                "{} (default)",
                default.clone().folder.unwrap_or_else(|| "".to_owned())
            ))
        );
    }
pub fn to_string ( self , default : & Config ) -> String { return format ! ( " " self email unwrap_or_else ( format ( " " default clone ( ) email unwrap_or_else ( " " to_owned ( ) ) ) ) self folder unwrap_or_else ( format ( " " default clone ( ) folder unwrap_or_else ( " " to_owned ( ) ) ) ) ) ; }
Creates a string view of config.
Creates a string view of config .
self
default
&Config
self
default
&Config