//! This code was AUTOGENERATED using the Codama library.
use {
    crate::types::graphql::{AuthorityGraphQL, PluginGraphQL},
    carbon_core::graphql::primitives::U64,
    juniper::GraphQLObject,
};

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "HashablePluginSchema")]
pub struct HashablePluginSchemaGraphQL {
    pub index: U64,
    pub authority: AuthorityGraphQL,
    pub plugin: PluginGraphQL,
}

impl From<crate::types::HashablePluginSchema> for HashablePluginSchemaGraphQL {
    fn from(original: crate::types::HashablePluginSchema) -> Self {
        Self {
            index: carbon_core::graphql::primitives::U64(original.index),
            authority: original.authority.into(),
            plugin: original.plugin.into(),
        }
    }
}
