mangadex_api_types_rust/api_client_state.rs
1use serde::{Deserialize, Serialize};
2
3/// API Client state for approval.
4///
5/// The purpose of these are to discourage troll entries by requiring staff approval.
6#[derive(Clone, Copy, Debug, Deserialize, Hash, PartialEq, Eq, Serialize, Default)]
7#[serde(rename_all = "snake_case")]
8#[cfg_attr(feature = "specta", derive(specta::Type))]
9#[cfg_attr(feature = "async-graphql", derive(async_graphql::Enum))]
10#[non_exhaustive]
11pub enum ApiClientState {
12 #[default]
13 Requested,
14 Approved,
15 Rejected,
16 Autoapproved,
17}