Spaces:
Runtime error
Runtime error
Download src/models.rs from lljz66/app-lookup: direct link, hf CLI and curl.
- Browser
- Download file 725 Bytes
-
https://huggingface.co/spaces/lljz66/app-lookup/resolve/main/src/models.rs
- Command line
-
hf download hf://spaces/lljz66/app-lookup/src/models.rs
-
curl -L -o models.rs https://huggingface.co/spaces/lljz66/app-lookup/resolve/main/src/models.rs
725 Bytes
| 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 } | |