Skip to main content

hanzo_client/models/
build_out.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
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 BuildOut {
16    /// Bytes is the size of the bundled CommonJS the runtime will execute.
17    #[serde(rename = "bytes", skip_serializing_if = "Option::is_none")]
18    pub bytes: Option<i32>,
19    /// Generated is whether a model wrote the source from a spec, rather than the caller posting the source itself.
20    #[serde(rename = "generated", skip_serializing_if = "Option::is_none")]
21    pub generated: Option<bool>,
22    /// Plugin is the plugin as stored, with its derived id and build time.
23    #[serde(rename = "plugin", skip_serializing_if = "Option::is_none")]
24    pub plugin: Option<Box<models::AuthoredPlugin>>,
25}
26
27impl BuildOut {
28    pub fn new() -> BuildOut {
29        BuildOut {
30            bytes: None,
31            generated: None,
32            plugin: None,
33        }
34    }
35}
36