internetdata 2.2.1

The official Rust client library for the InternetData API: download and verify the published IP intelligence databases.
Documentation
/*
 * InternetData API
 *
 * The InternetData API: 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.09.21
 * 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 Checksums {
    /// Hex-encoded MD5 digest.
    #[serde(rename = "md5")]
    pub md5: String,
    /// Hex-encoded SHA-1 digest.
    #[serde(rename = "sha1")]
    pub sha1: String,
    /// Hex-encoded SHA-256 digest.
    #[serde(rename = "sha256")]
    pub sha256: String,
    /// Hex-encoded SHA-512 digest.
    #[serde(rename = "sha512")]
    pub sha512: String,
}

impl Checksums {
    pub fn new(md5: String, sha1: String, sha256: String, sha512: String) -> Checksums {
        Checksums { md5, sha1, sha256, sha512 }
    }
}