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

#[derive(Debug, Clone, GraphQLEnum)]
#[graphql(name = "ExternalPluginAdapterSchema")]
pub enum ExternalPluginAdapterSchemaGraphQL {
    Binary,
    Json,
    MsgPack,
}

impl From<crate::types::ExternalPluginAdapterSchema> for ExternalPluginAdapterSchemaGraphQL {
    fn from(original: crate::types::ExternalPluginAdapterSchema) -> Self {
        match original {
            crate::types::ExternalPluginAdapterSchema::Binary => Self::Binary,
            crate::types::ExternalPluginAdapterSchema::Json => Self::Json,
            crate::types::ExternalPluginAdapterSchema::MsgPack => Self::MsgPack,
        }
    }
}
