// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct WorkflowTableValidationDiagnostic {
    pub severity: WorkflowTableValidationSeverity,
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub column: Option<String>,
    pub rule: String,
    pub message: String,
}
impl WorkflowTableValidationDiagnostic {
    /// Construct a new `WorkflowTableValidationDiagnostic` with the required fields set.
    #[allow(deprecated)]
    pub fn new(
        severity: WorkflowTableValidationSeverity,
        rule: impl Into<String>,
        message: impl Into<String>,
    ) -> Self {
        Self {
            severity,
            column: Default::default(),
            rule: rule.into(),
            message: message.into(),
        }
    }
}
