Skip to main content

windmill_api/models/
list_hub_integrations_200_response_inner.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ListHubIntegrations200ResponseInner {
16    #[serde(rename = "name")]
17    pub name: String,
18    /// whether the integration carries provider knowledge checked against the live API, on top of the resource type and example scripts /integrations/hub/{app}/meta returns for any integration. Absent on a hub predating the flag.
19    #[serde(rename = "documented", skip_serializing_if = "Option::is_none")]
20    pub documented: Option<bool>,
21    /// how often the integration has been picked, absent on a hub that does not count picks
22    #[serde(rename = "picks", skip_serializing_if = "Option::is_none")]
23    pub picks: Option<i32>,
24    /// the label the hub curates for the integration, null or absent where it names none
25    #[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
26    pub display_name: Option<Option<String>>,
27}
28
29impl ListHubIntegrations200ResponseInner {
30    pub fn new(name: String) -> ListHubIntegrations200ResponseInner {
31        ListHubIntegrations200ResponseInner {
32            name,
33            documented: None,
34            picks: None,
35            display_name: None,
36        }
37    }
38}
39