1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Windmill API
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.824.1
* Contact: contact@windmill.dev
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListHubIntegrations200ResponseInner {
#[serde(rename = "name")]
pub name: String,
/// 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.
#[serde(rename = "documented", skip_serializing_if = "Option::is_none")]
pub documented: Option<bool>,
/// how often the integration has been picked, absent on a hub that does not count picks
#[serde(rename = "picks", skip_serializing_if = "Option::is_none")]
pub picks: Option<i32>,
/// the label the hub curates for the integration, null or absent where it names none
#[serde(rename = "display_name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub display_name: Option<Option<String>>,
}
impl ListHubIntegrations200ResponseInner {
pub fn new(name: String) -> ListHubIntegrations200ResponseInner {
ListHubIntegrations200ResponseInner {
name,
documented: None,
picks: None,
display_name: None,
}
}
}