klirr-core 0.2.1

Zero-maintenance and smart FOSS generating beautiful invoices for services and expenses.
Documentation
use crate::prelude::*;

#[derive(
    Debug,
    Clone,
    PartialEq,
    Eq,
    Hash,
    AsRef,
    derive_more::Display,
    derive_more::FromStr,
    Serialize,
    Deserialize,
)]
#[serde(transparent)]
pub struct SmtpServer(String);

impl SmtpServer {
    pub fn gmail() -> Self {
        SmtpServer("smtp.gmail.com".to_owned())
    }
}
impl Default for SmtpServer {
    fn default() -> Self {
        SmtpServer::gmail()
    }
}