Skip to main content

gitbundle_sdk/models/
password_reset_input.rs

1/*
2 * GitBundle API
3 *
4 * GitBundle API documentation.
5 *
6 * The version of the OpenAPI document: 3.4.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PasswordResetInput {
17    #[serde(rename = "confirm_password")]
18    pub confirm_password: String,
19    #[serde(rename = "password")]
20    pub password: String,
21    #[serde(rename = "token")]
22    pub token: String,
23}
24
25impl PasswordResetInput {
26    pub fn new(confirm_password: String, password: String, token: String) -> PasswordResetInput {
27        PasswordResetInput {
28            confirm_password,
29            password,
30            token,
31        }
32    }
33}