artifacts/models/
password_reset_confirm_schema.rs1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
5#[cfg_attr(feature = "specta", derive(specta::Type))]
6pub struct PasswordResetConfirmSchema {
7 #[serde(rename = "token")]
9 pub token: String,
10 #[serde(rename = "new_password")]
12 pub new_password: String,
13}
14
15impl PasswordResetConfirmSchema {
16 pub fn new(token: String, new_password: String) -> PasswordResetConfirmSchema {
17 PasswordResetConfirmSchema {
18 token,
19 new_password,
20 }
21 }
22}