#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ErrorOneOf26 {
#[serde(rename = "type")]
pub _type: Type,
#[serde(rename = "max")]
pub max: i32,
}
impl ErrorOneOf26 {
pub fn new(_type: Type, max: i32) -> ErrorOneOf26 {
ErrorOneOf26 {
_type,
max,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "TooManyServers")]
TooManyServers,
}
impl Default for Type {
fn default() -> Type {
Self::TooManyServers
}
}