mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-04-30 16:20:54 +00:00
21 lines
414 B
Rust
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,
|
|
}
|
|
}
|
|
} |