/*
 * Artifact Keeper API
 *
 * REST API for Artifact Keeper, an open-source universal artifact registry. Covers user management, repositories, artifacts, search, security scanning, SBOM, dependency tracking, SSO, analytics, monitoring, telemetry, lifecycle policies, plugins, edge nodes, migration, and administration. Format-specific protocol endpoints (npm, PyPI, Maven, Docker/OCI, etc.) are not included; those follow their respective upstream specifications.
 *
 * The version of the OpenAPI document: 1.0.0-a2
 * 
 * Generated by: https://openapi-generator.tech
 */

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

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LicenseCheckResultViolationsInner {
    /// SPDX identifier of the violating license.
    #[serde(rename = "license")]
    pub license: String,
    /// Name of the policy that was violated.
    #[serde(rename = "policy_name")]
    pub policy_name: String,
    /// Enforcement action prescribed by the policy (e.g. warn, block).
    #[serde(rename = "action")]
    pub action: String,
}

impl LicenseCheckResultViolationsInner {
    pub fn new(license: String, policy_name: String, action: String) -> LicenseCheckResultViolationsInner {
        LicenseCheckResultViolationsInner {
            license,
            policy_name,
            action,
        }
    }
}

