Skip to main content

windmill_api/models/
get_hub_integration_meta_200_response_derived.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.824.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GetHubIntegrationMeta200ResponseDerived : facts computed from the integration's shipped scripts
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GetHubIntegrationMeta200ResponseDerived {
17    #[serde(rename = "api_hosts")]
18    pub api_hosts: Vec<models::GetHubIntegrationMeta200ResponseDerivedApiHostsInner>,
19    #[serde(rename = "style")]
20    pub style: Style,
21    #[serde(rename = "languages")]
22    pub languages: std::collections::HashMap<String, f64>,
23    #[serde(rename = "script_counts")]
24    pub script_counts: Box<models::GetHubIntegrationMeta200ResponseDerivedScriptCounts>,
25    #[serde(rename = "top_scripts")]
26    pub top_scripts: Vec<models::GetHubIntegrationMeta200ResponseDerivedTopScriptsInner>,
27}
28
29impl GetHubIntegrationMeta200ResponseDerived {
30    /// facts computed from the integration's shipped scripts
31    pub fn new(api_hosts: Vec<models::GetHubIntegrationMeta200ResponseDerivedApiHostsInner>, style: Style, languages: std::collections::HashMap<String, f64>, script_counts: models::GetHubIntegrationMeta200ResponseDerivedScriptCounts, top_scripts: Vec<models::GetHubIntegrationMeta200ResponseDerivedTopScriptsInner>) -> GetHubIntegrationMeta200ResponseDerived {
32        GetHubIntegrationMeta200ResponseDerived {
33            api_hosts,
34            style,
35            languages,
36            script_counts: Box::new(script_counts),
37            top_scripts,
38        }
39    }
40}
41/// 
42#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
43pub enum Style {
44    #[serde(rename = "fetch")]
45    Fetch,
46    #[serde(rename = "sdk")]
47    Sdk,
48    #[serde(rename = "mixed")]
49    Mixed,
50    #[serde(rename = "unknown")]
51    Unknown,
52}
53
54impl Default for Style {
55    fn default() -> Style {
56        Self::Fetch
57    }
58}
59