2024-09-29 09:57:02 -04:00
|
|
|
use std::time::SystemTime;
|
|
|
|
|
|
|
|
use serde::Serialize;
|
2024-10-03 10:05:30 -04:00
|
|
|
use serde_with::{serde_as, skip_serializing_none};
|
2024-09-29 09:57:02 -04:00
|
|
|
|
|
|
|
#[serde_as]
|
2024-10-03 10:05:30 -04:00
|
|
|
#[skip_serializing_none]
|
2024-09-29 09:57:02 -04:00
|
|
|
#[derive(Debug, Serialize)]
|
2024-10-03 10:05:30 -04:00
|
|
|
#[serde(rename_all = "camelCase")]
|
2024-09-29 09:57:02 -04:00
|
|
|
pub struct UserRegistrationResponse {
|
|
|
|
pub id: i32,
|
|
|
|
|
|
|
|
#[serde(serialize_with = "humantime_serde::serialize")]
|
|
|
|
pub expiration: SystemTime,
|
2024-10-03 10:05:30 -04:00
|
|
|
|
2024-10-03 15:27:30 -04:00
|
|
|
pub verification_token: Option<String>,
|
2024-09-29 09:57:02 -04:00
|
|
|
}
|