authentik_rust/models/
cache.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// Cache : Generic cache stats for an object
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Cache {
16    #[serde(rename = "count")]
17    pub count: i32,
18}
19
20impl Cache {
21    /// Generic cache stats for an object
22    pub fn new(count: i32) -> Cache {
23        Cache {
24            count,
25        }
26    }
27}
28