Skip to main content

platform/storage/nonce/
db_nonce_entry.rs

1//! 数据库 Nonce 条目
2//!
3//! 定义了存储在数据库中的 Nonce 条目结构
4
5use serde::{Deserialize, Serialize};
6
7/// Nonce entry stored in the database
8#[derive(Default, Debug, Clone, Serialize, Deserialize)]
9pub struct DbNonceEntry {
10    pub id: Option<i64>,
11    pub nonce: String,
12    pub context: Option<String>,
13    pub expires_at: i64, // Unix timestamp
14    pub created_at: i64, // Unix timestamp
15}