1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use serde::Deserialize; #[derive(Debug, Deserialize)] pub struct QuoteVendor { pub name: String, pub homepage: Option<String>, pub endpoint: String, pub queries: QuoteQueries, } #[derive(Debug, Deserialize)] pub struct QuoteQueries { pub quote: String, pub author: String, pub url: Option<String>, }