Skip to main content

windmill_api/models/
client_ip_trust_view.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.892.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 ClientIpTrustView {
16    #[serde(rename = "networks")]
17    pub networks: Vec<String>,
18    #[serde(rename = "hosts")]
19    pub hosts: Vec<models::ClientIpTrustViewHostsInner>,
20    #[serde(rename = "cloudflare")]
21    pub cloudflare: bool,
22}
23
24impl ClientIpTrustView {
25    pub fn new(networks: Vec<String>, hosts: Vec<models::ClientIpTrustViewHostsInner>, cloudflare: bool) -> ClientIpTrustView {
26        ClientIpTrustView {
27            networks,
28            hosts,
29            cloudflare,
30        }
31    }
32}
33