bindizr-core 0.1.0-beta.4

Core models, configuration, DNS record types, and logging utilities for bindizr
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use sqlx::FromRow;

#[derive(Debug, PartialEq, Eq, Clone, Serialize, Deserialize, FromRow)]
pub struct ApiToken {
    pub id: i32,
    pub token: String,               // the API token value
    pub description: Option<String>, // token description
    pub created_at: DateTime<Utc>,
    pub expires_at: Option<DateTime<Utc>>, // token expiration date
    pub last_used_at: Option<DateTime<Utc>>, // last used timestamp
}