#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum OperatorEnum {
#[serde(rename = "union")]
Union,
#[serde(rename = "intersection")]
Intersection,
#[serde(rename = "difference")]
Difference,
}
impl ToString for OperatorEnum {
fn to_string(&self) -> String {
match self {
Self::Union => String::from("union"),
Self::Intersection => String::from("intersection"),
Self::Difference => String::from("difference"),
}
}
}
impl Default for OperatorEnum {
fn default() -> OperatorEnum {
Self::Union
}
}