use crate::event::metrics::RuntimeCompanyMetric;

pub(crate) fn validate_company_governance_scalar_metric(
    metric: RuntimeCompanyMetric,
) -> Result<(), String> {
    match metric {
        RuntimeCompanyMetric::CreditRating
        | RuntimeCompanyMetric::PrimeRate
        | RuntimeCompanyMetric::BookValuePerShare
        | RuntimeCompanyMetric::InvestorConfidence
        | RuntimeCompanyMetric::ManagementAttitude => Ok(()),
        _ => Err(
            "governance scalar effect requires a writable company governance metric".to_string(),
        ),
    }
}
