revolt_api 0.6.5

Open source user-first chat platform.
Documentation
/*
 * Revolt API
 *
 * Open source user-first chat platform.
 *
 * The version of the OpenAPI document: 0.6.5
 * Contact: contact@revolt.chat
 * Generated by: https://openapi-generator.tech
 */

/// ErrorOneOf : This error was not labeled :(



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ErrorOneOf {
    #[serde(rename = "type")]
    pub r#type: RHashType,
}

impl ErrorOneOf {
    /// This error was not labeled :(
    pub fn new(r#type: RHashType) -> ErrorOneOf {
        ErrorOneOf {
            r#type,
        }
    }
}

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum RHashType {
    #[serde(rename = "LabelMe")]
    LabelMe,
}

impl Default for RHashType {
    fn default() -> RHashType {
        Self::LabelMe
    }
}