Skip to main content

mpl_core/generated/types/
validation_result.rs

1//! This code was AUTOGENERATED using the kinobi library.
2//! Please DO NOT EDIT THIS FILE, instead use visitors
3//! to add features, then rerun kinobi to update it.
4//!
5//! [https://github.com/metaplex-foundation/kinobi]
6//!
7
8#[cfg(feature = "anchor")]
9use anchor_lang::prelude::{AnchorDeserialize, AnchorSerialize};
10#[cfg(not(feature = "anchor"))]
11use borsh::{BorshDeserialize, BorshSerialize};
12use num_derive::FromPrimitive;
13
14#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
15#[cfg_attr(not(feature = "anchor"), derive(BorshSerialize, BorshDeserialize))]
16#[cfg_attr(feature = "anchor", derive(AnchorSerialize, AnchorDeserialize))]
17#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Hash, FromPrimitive)]
18pub enum ValidationResult {
19    Approved,
20    Rejected,
21    Pass,
22    ForceApproved,
23}