use serde::{Deserialize, Serialize};
#[derive(
Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
)]
pub enum UnprocessableContentErrorCode {
#[serde(rename = "no_throttled_error_code")]
#[default]
NoThrottledErrorCode,
#[serde(rename = "throttled_timeout_error")]
ThrottledTimeoutError,
}
impl std::fmt::Display for UnprocessableContentErrorCode {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
match self {
Self::NoThrottledErrorCode => write!(f, "no_throttled_error_code"),
Self::ThrottledTimeoutError => write!(f, "throttled_timeout_error"),
}
}
}