/* * rocie-server * * An enterprise grocery management system - server * * The version of the OpenAPI document: 0.1.0 * Contact: benedikt.peetz@b-peetz.de * Generated by: https://openapi-generator.tech */ use crate::models; use serde::{Deserialize, Serialize}; /// Section : A section holding steps #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct Section { /// Content inside #[serde(rename = "content")] pub content: Vec, /// Name of the section #[serde(rename = "name", skip_serializing_if = "Option::is_none")] pub name: Option, } impl Section { /// A section holding steps pub fn new(content: Vec) -> Section { Section { content, name: None, } } }