chyabrung-cli 0.2.5

The `chy` command line tool for Chyabrung: scaffolding, dev server with hot reload, builds, generators, migrations and one-command deploys
1
2
3
4
5
6
7
8
9
10
11
12
use chyabrung::prelude::*;

#[derive(Serialize)]
pub struct WelcomeMail {
    pub name: String,
}

impl Mailable for WelcomeMail {
    fn subject(&self) -> String {
        format!("Welcome, {}!", self.name)
    }
}