//! This code was AUTOGENERATED using the Codama library.
use juniper::GraphQLEnum;

#[derive(Debug, Clone, GraphQLEnum)]
#[graphql(name = "ValidationResult")]
pub enum ValidationResultGraphQL {
    Approved,
    Rejected,
    Pass,
    ForceApproved,
}

impl From<crate::types::ValidationResult> for ValidationResultGraphQL {
    fn from(original: crate::types::ValidationResult) -> Self {
        match original {
            crate::types::ValidationResult::Approved => Self::Approved,
            crate::types::ValidationResult::Rejected => Self::Rejected,
            crate::types::ValidationResult::Pass => Self::Pass,
            crate::types::ValidationResult::ForceApproved => Self::ForceApproved,
        }
    }
}
