carbon-swig-decoder 0.12.0

Swig Decoder
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use juniper::GraphQLObject;

#[derive(Debug, Clone, GraphQLObject)]
#[graphql(name = "MigrateToWalletAddressV1")]
pub struct MigrateToWalletAddressV1GraphQL {
    pub instruction_metadata: crate::instructions::graphql::InstructionMetadataGraphQL,
}

impl TryFrom<crate::instructions::postgres::migrate_to_wallet_address_v1_row::MigrateToWalletAddressV1Row> for MigrateToWalletAddressV1GraphQL {
    type Error = carbon_core::error::Error;
    fn try_from(row: crate::instructions::postgres::migrate_to_wallet_address_v1_row::MigrateToWalletAddressV1Row) -> Result<Self, Self::Error> {
        Ok(Self {
            instruction_metadata: row.instruction_metadata.into(),
        })
    }
}