Skip to main content

authentik_client/models/
event_top_per_user.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2026.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EventTopPerUser : Response object of Event's top_per_user
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EventTopPerUser {
17    #[serde(rename = "application")]
18    pub application: std::collections::HashMap<String, serde_json::Value>,
19    #[serde(rename = "counted_events")]
20    pub counted_events: i32,
21    #[serde(rename = "unique_users")]
22    pub unique_users: i32,
23}
24
25impl EventTopPerUser {
26    /// Response object of Event's top_per_user
27    pub fn new(
28        application: std::collections::HashMap<String, serde_json::Value>,
29        counted_events: i32,
30        unique_users: i32,
31    ) -> EventTopPerUser {
32        EventTopPerUser {
33            application,
34            counted_events,
35            unique_users,
36        }
37    }
38}