//! This code was AUTOGENERATED using the Codama library.
use {carbon_core::graphql::primitives::Pubkey, juniper::GraphQLObject};

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "AutographSignature")]
pub struct AutographSignatureGraphQL {
    pub address: Pubkey,
    pub message: String,
}

impl From<crate::types::AutographSignature> for AutographSignatureGraphQL {
    fn from(original: crate::types::AutographSignature) -> Self {
        Self {
            address: carbon_core::graphql::primitives::Pubkey(original.address),
            message: original.message,
        }
    }
}
