1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-04-30 16:20:54 +00:00
comunicapiv3/src/api_data/admin/admin_res_create_reset_token.rs

21 lines
414 B
Rust

//! # Result of creation of a reset token
//!
//! @author Pierre Hubert
use crate::data::admin::AdminResetToken;
use serde::Serialize;
#[derive(Serialize)]
pub struct AdminResCreateResetToken {
token: String,
expire: u64,
}
impl AdminResCreateResetToken {
pub fn new(token: AdminResetToken) -> Self {
Self {
token: token.token,
expire: token.expire,
}
}
}