revolt_api 0.5.5

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

/// SpecialOneOf5 : Spotify track



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct SpecialOneOf5 {
    #[serde(rename = "type")]
    pub _type: Type,
    #[serde(rename = "content_type")]
    pub content_type: String,
    #[serde(rename = "id")]
    pub id: String,
}

impl SpecialOneOf5 {
    /// Spotify track
    pub fn new(_type: Type, content_type: String, id: String) -> SpecialOneOf5 {
        SpecialOneOf5 {
            _type,
            content_type,
            id,
        }
    }
}

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

impl Default for Type {
    fn default() -> Type {
        Self::Spotify
    }
}