hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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 SeoBacklinkOut {
    /// Backlinks is how many links point at it.
    #[serde(rename = "backlinks", skip_serializing_if = "Option::is_none")]
    pub backlinks: Option<i32>,
    /// Broken is how many of those links point at something that no longer answers.
    #[serde(rename = "broken", skip_serializing_if = "Option::is_none")]
    pub broken: Option<i32>,
    /// 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>,
    /// Domains is how many distinct sites those links come from — the number that matters, since a thousand links from one site is one site.
    #[serde(rename = "domains", skip_serializing_if = "Option::is_none")]
    pub domains: Option<i32>,
    /// FirstSeen is when the upstream first saw a link to this target, RFC 3339.
    #[serde(rename = "firstSeen", skip_serializing_if = "Option::is_none")]
    pub first_seen: Option<String>,
    /// Pages is how many distinct pages link in.
    #[serde(rename = "pages", skip_serializing_if = "Option::is_none")]
    pub pages: Option<i32>,
    /// Rank is the upstream's authority score for the target, 0 to 1000.
    #[serde(rename = "rank", skip_serializing_if = "Option::is_none")]
    pub rank: Option<i32>,
    /// Spam is the share of the profile judged spam, 0 to 100.
    #[serde(rename = "spam", skip_serializing_if = "Option::is_none")]
    pub spam: Option<i32>,
    /// Target is the target as the upstream resolved it.
    #[serde(rename = "target", skip_serializing_if = "Option::is_none")]
    pub target: Option<String>,
}

impl SeoBacklinkOut {
    pub fn new() -> SeoBacklinkOut {
        SeoBacklinkOut {
            backlinks: None,
            broken: None,
            cost: None,
            domains: None,
            first_seen: None,
            pages: None,
            rank: None,
            spam: None,
            target: None,
        }
    }
}