(email: T)
| 42 | T: Into<String>, |
| 43 | { |
| 44 | fn from(email: T) -> Self { |
| 45 | Invitation { |
| 46 | id: Uuid::new_v4(), |
| 47 | email: email.into(), |
| 48 | expires_at: (Utc::now() + TimeDelta::try_hours(24).unwrap()).naive_utc(), |
| 49 | } |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | #[derive(Debug, Serialize, Deserialize)] |
nothing calls this directly
no outgoing calls
no test coverage detected