commerce_program_client/generated/
shared.rs

1//! This code was AUTOGENERATED using the codama library.
2//! Please DO NOT EDIT THIS FILE, instead use visitors
3//! to add features, then rerun codama to update it.
4//!
5//! <https://github.com/codama-idl/codama>
6//!
7
8
9
10
11    #[cfg(feature = "fetch")]
12    #[derive(Debug, Clone)]
13    pub struct DecodedAccount<T> {
14        pub address: solana_pubkey::Pubkey,
15        pub account: solana_account::Account,
16        pub data: T,
17    }
18
19    #[cfg(feature = "fetch")]
20    #[derive(Debug, Clone)]
21    pub enum MaybeAccount<T> {
22        Exists(DecodedAccount<T>),
23        NotFound(solana_pubkey::Pubkey),
24    }
25
26