Skip to main content

rocie_client/models/
metadata.rs

1// rocie - An enterprise grocery management system
2//
3// Copyright (C) 2026 Benedikt Peetz <benedikt.peetz@b-peetz.de>
4// SPDX-License-Identifier: GPL-3.0-or-later
5//
6// This file is part of Rocie.
7//
8// You should have received a copy of the License along with this program.
9// If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
10
11/*
12 * rocie-server
13 *
14 * An enterprise grocery management system - server
15 *
16 * The version of the OpenAPI document: 0.1.0
17 * Contact: benedikt.peetz@b-peetz.de
18 * Generated by: https://openapi-generator.tech
19 */
20
21use crate::models;
22use serde::{Deserialize, Serialize};
23
24#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
25pub struct Metadata {
26    #[serde(rename = "author", skip_serializing_if = "Option::is_none")]
27    pub author: Option<models::NameAndUrl>,
28    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
29    pub description: Option<String>,
30    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
31    pub source: Option<models::NameAndUrl>,
32    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
33    pub tags: Option<Vec<String>>,
34    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
35    pub title: Option<String>,
36}
37
38impl Metadata {
39    pub fn new() -> Metadata {
40        Metadata {
41            author: None,
42            description: None,
43            source: None,
44            tags: None,
45            title: None,
46        }
47    }
48}