photon_api/models/
account_state.rs

1/*
2 * photon-indexer
3 *
4 * Solana indexer for general compression
5 *
6 * The version of the OpenAPI document: 0.45.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13///
14#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
15pub enum AccountState {
16    #[serde(rename = "initialized")]
17    Initialized,
18    #[serde(rename = "frozen")]
19    Frozen,
20}
21
22impl ToString for AccountState {
23    fn to_string(&self) -> String {
24        match self {
25            Self::Initialized => String::from("initialized"),
26            Self::Frozen => String::from("frozen"),
27        }
28    }
29}
30
31impl Default for AccountState {
32    fn default() -> AccountState {
33        Self::Initialized
34    }
35}