/*
 * Artifact Keeper API
 *
 * Enterprise artifact registry supporting 45+ package formats.
 *
 * The version of the OpenAPI document: 1.2.1
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ConnectionTestResult {
    #[serde(rename = "artifactory_version", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub artifactory_version: Option<Option<String>>,
    #[serde(rename = "license_type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
    pub license_type: Option<Option<String>>,
    #[serde(rename = "message")]
    pub message: String,
    #[serde(rename = "success")]
    pub success: bool,
}

impl ConnectionTestResult {
    pub fn new(message: String, success: bool) -> ConnectionTestResult {
        ConnectionTestResult {
            artifactory_version: None,
            license_type: None,
            message,
            success,
        }
    }
}

