mcsm/src/models/search.rs

16 lines
278 B
Rust
Raw Normal View History

use serde::Deserialize;
#[derive(Deserialize)]
pub struct SearchResult {
pub hits: Vec<SearchHit>,
pub total_hits: u32,
}
#[derive(Deserialize)]
pub struct SearchHit {
pub slug: String,
pub author: String,
pub title: String,
pub description: String,
}