/*
 * ByRefOrValue
 *
 * This tests for a oneOf interface representation 
 *
 * The version of the OpenAPI document: 0.0.1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum FruitType {
    #[serde(rename = "APPLE")]
    Apple,
    #[serde(rename = "BANANA")]
    Banana,

}

impl ToString for FruitType {
    fn to_string(&self) -> String {
        match self {
            Self::Apple => String::from("APPLE"),
            Self::Banana => String::from("BANANA"),
        }
    }
}

impl Default for FruitType {
    fn default() -> FruitType {
        Self::Apple
    }
}

