revolt_api/models/
error_one_of_1_one_of_17.rs

1/*
2 * Revolt API
3 *
4 * Open source user-first chat platform.
5 *
6 * The version of the OpenAPI document: 0.6.5
7 * Contact: contact@revolt.chat
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct ErrorOneOf1OneOf17 {
16    #[serde(rename = "type")]
17    pub r#type: RHashType,
18}
19
20impl ErrorOneOf1OneOf17 {
21    pub fn new(r#type: RHashType) -> ErrorOneOf1OneOf17 {
22        ErrorOneOf1OneOf17 {
23            r#type,
24        }
25    }
26}
27
28/// 
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum RHashType {
31    #[serde(rename = "EmptyMessage")]
32    EmptyMessage,
33}
34
35impl Default for RHashType {
36    fn default() -> RHashType {
37        Self::EmptyMessage
38    }
39}
40