netbox_openapi/models/rendered_config.rs
1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.6.2 (4.6)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// RenderedConfig : Describes the JSON response returned by the /render-config/ and /render/ endpoints.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct RenderedConfig {
15 #[serde(rename = "configtemplate", skip_serializing_if = "Option::is_none")]
16 pub configtemplate: Option<Box<crate::models::BriefConfigTemplate>>,
17 /// The rendered template output.
18 #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
19 pub content: Option<String>,
20}
21
22impl RenderedConfig {
23 /// Describes the JSON response returned by the /render-config/ and /render/ endpoints.
24 pub fn new() -> RenderedConfig {
25 RenderedConfig {
26 configtemplate: None,
27 content: None,
28 }
29 }
30}