/*
* 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 IndexVersion {
/// CommitDate is empty here: this surface is a dialect implementation, not a build of Meilisearch, so there is no upstream commit to date.
#[serde(rename = "commitDate", skip_serializing_if = "Option::is_none")]
pub commit_date: Option<String>,
/// CommitSha names the implementation (`hanzo-cloud`) rather than a build hash, so a client logging it records which server answered instead of implying a Meilisearch release.
#[serde(rename = "commitSha", skip_serializing_if = "Option::is_none")]
pub commit_sha: Option<String>,
/// PkgVersion is this dialect implementation's own version.
#[serde(rename = "pkgVersion", skip_serializing_if = "Option::is_none")]
pub pkg_version: Option<String>,
}
impl IndexVersion {
pub fn new() -> IndexVersion {
IndexVersion {
commit_date: None,
commit_sha: None,
pkg_version: None,
}
}
}