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
 */

/// MetadataOneOf3 : File is a video with specific dimensions



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

impl MetadataOneOf3 {
    /// File is a video with specific dimensions
    pub fn new(r#type: RHashType, width: i32, height: i32) -> MetadataOneOf3 {
        MetadataOneOf3 {
            r#type,
            width,
            height,
        }
    }
}

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

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