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

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "RegistryRecord")]
pub struct RegistryRecordGraphQL {
    pub plugin_type: PluginTypeGraphQL,
    pub authority: AuthorityGraphQL,
    pub offset: U64,
}

impl From<crate::types::RegistryRecord> for RegistryRecordGraphQL {
    fn from(original: crate::types::RegistryRecord) -> Self {
        Self {
            plugin_type: original.plugin_type.into(),
            authority: original.authority.into(),
            offset: carbon_core::graphql::primitives::U64(original.offset),
        }
    }
}
