//! 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 crate::generated::types::MetadataAdditionalFieldRestriction;
use borsh::BorshDeserialize;
use borsh::BorshSerialize;

/// Enforces rules on a single additional field in the mint metadata.
/// The field must exist and the value must pass the restriction.
#[derive(BorshSerialize, BorshDeserialize, Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct MetadataAdditionalFieldRule {
    pub field: String,
    pub value_restrictions: Option<MetadataAdditionalFieldRestriction>,
}
