| 31 | #[derive(Debug, Serialize, Deserialize, Queryable, Insertable)] |
| 32 | #[diesel(table_name = invitations)] |
| 33 | pub struct Invitation { |
| 34 | pub id: Uuid, |
| 35 | pub email: String, |
| 36 | pub expires_at: NaiveDateTime, |
| 37 | } |
| 38 | |
| 39 | // any type that implements Into<String> can be used to create Invitation |
| 40 | impl<T> From<T> for Invitation |
nothing calls this directly
no outgoing calls
no test coverage detected