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

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

/// PluginInstallResponse : Response for plugin installation
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PluginInstallResponse {
    #[serde(rename = "format_key")]
    pub format_key: String,
    #[serde(rename = "message")]
    pub message: String,
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "plugin_id")]
    pub plugin_id: uuid::Uuid,
    #[serde(rename = "version")]
    pub version: String,
}

impl PluginInstallResponse {
    /// Response for plugin installation
    pub fn new(format_key: String, message: String, name: String, plugin_id: uuid::Uuid, version: String) -> PluginInstallResponse {
        PluginInstallResponse {
            format_key,
            message,
            name,
            plugin_id,
            version,
        }
    }
}

