internetdata 2.10.1

The official Rust client library for the InternetData API: look up IP addresses, AS numbers and domains, and download the IP intelligence databases.
Documentation
/*
 * InternetData API
 *
 * The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them.  See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
 *
 * The version of the OpenAPI document: 2026.11.13
 * Contact: support@internetdata.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DnsResolverDetail {
    /// The port it answered on.
    #[serde(rename = "port", skip_serializing_if = "Option::is_none")]
    pub port: Option<i32>,
    /// It offered recursion.
    #[serde(rename = "recursion_available", skip_serializing_if = "Option::is_none")]
    pub recursion_available: Option<bool>,
    /// Its answer's response code.
    #[serde(rename = "rcode", skip_serializing_if = "Option::is_none")]
    pub rcode: Option<i32>,
    /// Its answer was right.
    #[serde(rename = "answer_correct", skip_serializing_if = "Option::is_none")]
    pub answer_correct: Option<bool>,
    /// The first day it answered.
    #[serde(rename = "first_seen", skip_serializing_if = "Option::is_none")]
    pub first_seen: Option<String>,
    /// The last day it did.
    #[serde(rename = "last_seen", skip_serializing_if = "Option::is_none")]
    pub last_seen: Option<String>,
}

impl DnsResolverDetail {
    pub fn new() -> DnsResolverDetail {
        DnsResolverDetail {
            port: None,
            recursion_available: None,
            rcode: None,
            answer_correct: None,
            first_seen: None,
            last_seen: None,
        }
    }
}