mirror of
https://github.com/eliasrenman/url-shortener.git
synced 2026-03-16 20:16:06 +01:00
10 lines
246 B
Rust
10 lines
246 B
Rust
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<DateTime<Utc>>,
|
|
}
|