//! This code was AUTOGENERATED using the codama library.
//! Please DO NOT EDIT THIS FILE, instead use visitors
//! to add features, then rerun codama to update it.
//!
//! <https://github.com/codama-idl/codama>
//!

use borsh::BorshDeserialize;
use borsh::BorshSerialize;

/// Inner enum for the MetadataAdditionalFieldRestriction enum.
/// * Includes - The field must include one of the values in the vector.
/// * Excludes - The field must not include any of the values in the vector.
#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum MetadataAdditionalFieldRestriction {
    Includes(Vec<String>),
    Excludes(Vec<String>),
}
