hanzo_client/models/web_result.rs
1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct WebResult {
16 /// Content is the ENGINE's snippet — the few lines shown under the title, not the page's text. Read the page itself with POST /v1/crawl.
17 #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
18 pub content: Option<String>,
19 /// Engine names the backend that found this hit, so one engine's view of a query can be told from another's.
20 #[serde(rename = "engine", skip_serializing_if = "Option::is_none")]
21 pub engine: Option<String>,
22 /// Title is the page's title.
23 #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
24 pub title: Option<String>,
25 /// URL is the page's address, as the engine reported it.
26 #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
27 pub url: Option<String>,
28}
29
30impl WebResult {
31 pub fn new() -> WebResult {
32 WebResult {
33 content: None,
34 engine: None,
35 title: None,
36 url: None,
37 }
38 }
39}
40