windmill_api/models/
client_ip_trust_view.rs1use 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