nautobot-openapi 0.3.1

low level nautobot bindings (generated by openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 2.4.27 (2.4)
 *
 * Generated by: https://openapi-generator.tech
 */

/// RenderJinja : Serializer for RenderJinjaView.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RenderJinja {
    #[serde(rename = "template_code")]
    pub template_code: String,
    #[serde(rename = "context", skip_serializing_if = "Option::is_none")]
    pub context: Option<::std::collections::HashMap<String, serde_json::Value>>,
    #[serde(rename = "rendered_template", skip_serializing_if = "Option::is_none")]
    pub rendered_template: Option<String>,
    #[serde(
        rename = "rendered_template_lines",
        skip_serializing_if = "Option::is_none"
    )]
    pub rendered_template_lines: Option<Vec<String>>,
}

impl RenderJinja {
    /// Serializer for RenderJinjaView.
    pub fn new(template_code: String) -> RenderJinja {
        RenderJinja {
            template_code,
            context: None,
            rendered_template: None,
            rendered_template_lines: None,
        }
    }
}