mirror of
https://github.com/eliasrenman/url-shortener.git
synced 2026-03-16 20:16:06 +01:00
feat: fixed ttl
This commit is contained in:
@@ -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>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user