Skip to main content

reflect_sdk/generated/types/
program.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
8use solana_pubkey::Pubkey;
9use crate::generated::types::ProgramStatus;
10use borsh::BorshSerialize;
11use borsh::BorshDeserialize;
12
13#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
14#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
15pub struct Program {
16pub index: u8,
17#[cfg_attr(feature = "serde", serde(with = "serde_with::As::<serde_with::DisplayFromStr>"))]
18pub id: Pubkey,
19pub status: ProgramStatus,
20}
21
22