Files
nx9-url-shortener/src/models/url.rs
T
2026-06-11 20:19:03 +05:30

15 lines
383 B
Rust

use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct Url {
pub id: String,
pub code: String,
pub destination: String,
pub title: Option<String>,
pub description: Option<String>,
pub status: String, // 'healthy', 'suspect', 'dead'
pub created_at: String,
pub updated_at: String,
pub tags: Vec<String>,
}