Skip to main content

codama_nodes/generated/shared/
optional_account_strategy.rs

1use serde::{Deserialize, Serialize};
2
3/// How an absent optional account is represented when serialising an instruction.
4#[derive(Debug, PartialEq, Eq, Clone, Copy, Serialize, Deserialize)]
5#[serde(rename_all = "camelCase")]
6pub enum OptionalAccountStrategy {
7    /// The account slot is left out of the instruction entirely. Subsequent accounts shift up.
8    Omitted,
9    /// The account slot is filled with the program ID as a placeholder, preserving positional indices.
10    ProgramId,
11}