windmill-api 1.891.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.891.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 ClientIpDiagnosticsForwardersInner {
    #[serde(rename = "peer")]
    pub peer: String,
    /// a Cloudflare edge, believed by audit entries and the login rate limit, never by token IP allowlists
    #[serde(rename = "attributed_only")]
    pub attributed_only: bool,
    #[serde(rename = "last_seen")]
    pub last_seen: String,
    #[serde(rename = "requests")]
    pub requests: i32,
}

impl ClientIpDiagnosticsForwardersInner {
    pub fn new(peer: String, attributed_only: bool, last_seen: String, requests: i32) -> ClientIpDiagnosticsForwardersInner {
        ClientIpDiagnosticsForwardersInner {
            peer,
            attributed_only,
            last_seen,
            requests,
        }
    }
}