lighthouse_sol/types/
data_value.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 crate::types::compact_bytes::CompactBytes;
9use borsh::BorshDeserialize;
10use borsh::BorshSerialize;
11use solana_pubkey::Pubkey;
12
13#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
14#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
15pub enum DataValue {
16    Bool(bool),
17    U8(u8),
18    I8(i8),
19    U16(u16),
20    I16(i16),
21    U32(u32),
22    I32(i32),
23    U64(u64),
24    I64(i64),
25    U128(u128),
26    I128(i128),
27    Bytes(CompactBytes),
28    #[cfg_attr(
29        feature = "serde",
30        serde(with = "serde_with::As::<serde_with::DisplayFromStr>")
31    )]
32    Pubkey(Pubkey),
33}