windmill-api 1.816.0

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * Windmill API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.816.0
 * 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,
    /// 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,
            picks: None,
            display_name: None,
        }
    }
}