#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct GroupLabel {
#[serde(rename = "text", skip_serializing_if = "Option::is_none")]
pub text: Option<String>,
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub _type: Option<Type>,
}
impl GroupLabel {
pub fn new() -> GroupLabel {
GroupLabel {
text: None,
title: None,
_type: None,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Type {
#[serde(rename = "ADMIN")]
ADMIN,
#[serde(rename = "SINGLE")]
SINGLE,
#[serde(rename = "MULTIPLE")]
MULTIPLE,
}
impl Default for Type {
fn default() -> Type {
Self::ADMIN
}
}