alert-me/src/json/image_title.rs

13 lines
256 B
Rust
Raw Normal View History

2024-05-08 16:12:49 +00:00
use serde::{Deserialize, Serialize};
use super::title::Title;
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct ImageTitle {
pub index: u64,
#[serde(flatten)]
pub title: Title,
pub alt_text: String,
}