feat: fixed ttl

This commit is contained in:
Elias Renman
2025-03-24 16:54:49 +01:00
parent 085be0d51f
commit ee017c01c4
4 changed files with 7 additions and 5 deletions

View File

@@ -1,9 +1,9 @@
use chrono::NaiveDateTime;
use chrono::{DateTime, Utc};
use rocket::serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct UpsertUrlDto<'r> {
pub destination_url: &'r str,
pub ttl: Option<NaiveDateTime>,
pub ttl: Option<DateTime<Utc>>,
}