1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Hanzo Cloud API
*
* 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/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SeoAuditOut {
/// Checks is every named finding, each a yes or no — \"is_https\", \"no_h1_tag\", \"high_loading_time\", around fifty of them. It is an OPEN set the upstream adds to, so it is published as an object of booleans rather than as fifty declared fields that would be wrong the next time they name a fifty-first.
#[serde(rename = "checks", skip_serializing_if = "Option::is_none")]
pub checks: Option<std::collections::HashMap<String, bool>>,
/// Cost is what this call cost, in USD, as an exact decimal string.
#[serde(rename = "cost", skip_serializing_if = "Option::is_none")]
pub cost: Option<String>,
/// Description is its meta description.
#[serde(rename = "description", skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
/// Score is the upstream's on-page score, 0 to 100.
#[serde(rename = "score", skip_serializing_if = "Option::is_none")]
pub score: Option<f64>,
/// Status is the HTTP status the page answered with.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<i32>,
/// Title is the page's title.
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
/// URL is the address actually read, after redirects.
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
/// Words is how many words of readable text the page carries.
#[serde(rename = "words", skip_serializing_if = "Option::is_none")]
pub words: Option<i32>,
}
impl SeoAuditOut {
pub fn new() -> SeoAuditOut {
SeoAuditOut {
checks: None,
cost: None,
description: None,
score: None,
status: None,
title: None,
url: None,
words: None,
}
}
}