1 2 3 4 5 6 7 8 9 10 11 12 13 14
use serde::Serialize; #[derive(Serialize)] pub struct SendPasswordResetEmail { email: String, } impl SendPasswordResetEmail { pub fn new(email: &str) -> Self { Self { email: email.to_string(), } } }