authentik-rust 0.0.1

Making authentication simple.
Documentation
/*
 * authentik
 *
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2024.2.1
 * Contact: hello@goauthentik.io
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

/// EventTopPerUser : Response object of Event's top_per_user
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct EventTopPerUser {
    #[serde(rename = "application")]
    pub application: std::collections::HashMap<String, serde_json::Value>,
    #[serde(rename = "counted_events")]
    pub counted_events: i32,
    #[serde(rename = "unique_users")]
    pub unique_users: i32,
}

impl EventTopPerUser {
    /// Response object of Event's top_per_user
    pub fn new(application: std::collections::HashMap<String, serde_json::Value>, counted_events: i32, unique_users: i32) -> EventTopPerUser {
        EventTopPerUser {
            application,
            counted_events,
            unique_users,
        }
    }
}