nautobot_openapi/models/
operator_enum.rs1#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
13pub enum OperatorEnum {
14 #[serde(rename = "union")]
15 Union,
16 #[serde(rename = "intersection")]
17 Intersection,
18 #[serde(rename = "difference")]
19 Difference,
20}
21
22impl ToString for OperatorEnum {
23 fn to_string(&self) -> String {
24 match self {
25 Self::Union => String::from("union"),
26 Self::Intersection => String::from("intersection"),
27 Self::Difference => String::from("difference"),
28 }
29 }
30}
31
32impl Default for OperatorEnum {
33 fn default() -> OperatorEnum {
34 Self::Union
35 }
36}