mirror of
https://github.com/lifegpc/pixiv_downloader.git
synced 2026-06-25 13:17:02 +08:00
16 lines
355 B
Rust
16 lines
355 B
Rust
use chrono::{DateTime, Utc};
|
|
|
|
/// A token in the database
|
|
pub struct Token {
|
|
/// The token ID
|
|
pub id: u64,
|
|
/// The user ID of the token
|
|
pub user_id: u64,
|
|
/// The token
|
|
pub token: [u8; 64],
|
|
/// The token's creation time
|
|
pub created_at: DateTime<Utc>,
|
|
/// The token's expiration time
|
|
pub expired_at: DateTime<Utc>,
|
|
}
|