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.810.0
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    /// how often the integration has been picked, absent on a hub that does not count picks
19    #[serde(rename = "picks", skip_serializing_if = "Option::is_none")]
20    pub picks: Option<i32>,
21}
22
23impl ListHubIntegrations200ResponseInner {
24    pub fn new(name: String) -> ListHubIntegrations200ResponseInner {
25        ListHubIntegrations200ResponseInner {
26            name,
27            picks: None,
28        }
29    }
30}
31