fistinc-auth 0.1.0

Paging types for Fist Inc bank
Documentation
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PasswordChangeAction {
    pub user_id: Uuid,
    pub date_time: DateTime<Utc>,
    pub last_password: String,
}

impl PasswordChangeAction {
    pub fn new(user_id: Uuid, last_password: &str) -> Self {
        Self {
            user_id,
            date_time: Utc::now(),
            last_password: last_password.to_string(),
        }
    }
}