mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-22 14:08:23 -05:00
26 lines
546 B
Rust
26 lines
546 B
Rust
|
use serde::Serialize;
|
||
|
|
||
|
#[derive(Debug, Serialize)]
|
||
|
#[serde(rename_all = "camelCase")]
|
||
|
pub struct SearchResult {
|
||
|
pub title: String,
|
||
|
pub visiting_url: String,
|
||
|
pub url: String,
|
||
|
pub description: String,
|
||
|
pub engine: Vec<String>,
|
||
|
}
|
||
|
|
||
|
pub struct RawSearchResult {
|
||
|
pub title: String,
|
||
|
pub visiting_url: String,
|
||
|
pub description: String,
|
||
|
pub engine: Vec<String>,
|
||
|
}
|
||
|
|
||
|
#[derive(Debug, Serialize)]
|
||
|
#[serde(rename_all = "camelCase")]
|
||
|
pub struct SearchResults {
|
||
|
pub results: Vec<SearchResult>,
|
||
|
pub page_query: String,
|
||
|
}
|