pyth_lazer_protocol/
symbol_state.rs

1use {
2    serde::{Deserialize, Serialize},
3    std::fmt::Display,
4};
5
6#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
7#[serde(rename_all = "snake_case")]
8pub enum SymbolState {
9    ComingSoon,
10    Stable,
11    Inactive,
12}
13
14impl Display for SymbolState {
15    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16        match self {
17            SymbolState::ComingSoon => write!(f, "coming_soon"),
18            SymbolState::Stable => write!(f, "stable"),
19            SymbolState::Inactive => write!(f, "inactive"),
20        }
21    }
22}