/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum RelationshipTypeChoices {
    #[serde(rename = "one-to-one")]
    OneToOne,
    #[serde(rename = "symmetric-one-to-one")]
    SymmetricOneToOne,
    #[serde(rename = "one-to-many")]
    OneToMany,
    #[serde(rename = "many-to-many")]
    ManyToMany,
    #[serde(rename = "symmetric-many-to-many")]
    SymmetricManyToMany,
}

impl ToString for RelationshipTypeChoices {
    fn to_string(&self) -> String {
        match self {
            Self::OneToOne => String::from("one-to-one"),
            Self::SymmetricOneToOne => String::from("symmetric-one-to-one"),
            Self::OneToMany => String::from("one-to-many"),
            Self::ManyToMany => String::from("many-to-many"),
            Self::SymmetricManyToMany => String::from("symmetric-many-to-many"),
        }
    }
}

impl Default for RelationshipTypeChoices {
    fn default() -> RelationshipTypeChoices {
        Self::OneToOne
    }
}
