#[derive(Debug, Deserialize, Serialize)]
struct Config {
smtp_login: String,
- smtp_password: String
+ smtp_password: String,
}
impl Config {
).collect();
if match_items.is_empty() {
- println!("No matches -_-´´");
+ println!("No matches 😿");
} else if send_email(&match_items[..], &config.smtp_login, &config.smtp_password) {
- println!("Some matches has been found! An e-mail has been sent!");
+ println!("Some matches has been found 😺! An e-mail has been sent!");
return Ok(())
} else {
println!("Unable to send e-mail");