artcoded_api/models/
hobby.rs

1/*
2 * Artcoded
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Hobby {
16    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
17    pub title: Option<String>,
18    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
19    pub description: Option<String>,
20}
21
22impl Hobby {
23    pub fn new() -> Hobby {
24        Hobby {
25            title: None,
26            description: None,
27        }
28    }
29}