Spaces:
Runtime error
Runtime error
| use serde::{Deserialize, Serialize}; | |
| pub struct AppResult { | |
| pub title: String, | |
| pub app_id: String, | |
| pub url: String, | |
| pub icon: String, | |
| pub developer: String, | |
| pub price: String, | |
| pub rating: Option<f64>, | |
| pub store: String, | |
| } | |
| pub struct SearchResponse { | |
| pub query: String, | |
| pub results: Vec<AppResult>, | |
| pub count: usize, | |
| } | |
| pub struct SearchQuery { | |
| pub q: String, | |
| pub store: String, | |
| pub limit: usize, | |
| } | |
| fn default_store() -> String { "both".into() } | |
| fn default_limit() -> usize { 25 } | |