actrix-platform 0.5.4

Actrix platform core infrastructure components
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! 数据库 Nonce 条目
//!
//! 定义了存储在数据库中的 Nonce 条目结构

use serde::{Deserialize, Serialize};

/// Nonce entry stored in the database
#[derive(Default, Debug, Clone, Serialize, Deserialize)]
pub struct DbNonceEntry {
    pub id: Option<i64>,
    pub nonce: String,
    pub context: Option<String>,
    pub expires_at: i64, // Unix timestamp
    pub created_at: i64, // Unix timestamp
}