lighthouse_sol/types/
write_type.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::{AccountInfoField, ClockField, DataValue};
9use borsh::BorshDeserialize;
10use borsh::BorshSerialize;
11
12#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
13#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
14pub enum WriteType {
15    AccountData { offset: u16, data_length: u16 },
16    AccountInfoField(AccountInfoField),
17    DataValue(DataValue),
18    Clock(ClockField),
19}