nautobot_openapi/models/stats.rs
1/*
2 * API Documentation
3 *
4 * Source of truth and network automation platform
5 *
6 * The version of the OpenAPI document: 3.1.0 (3.1)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// Stats : Serializer for rendering linkable statistics, e.g. related object counts for a Location.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct Stats {
15 #[serde(rename = "title")]
16 pub title: String,
17 #[serde(rename = "count")]
18 pub count: i32,
19 #[serde(rename = "ui_url")]
20 pub ui_url: String,
21 #[serde(rename = "api_url")]
22 pub api_url: String,
23}
24
25impl Stats {
26 /// Serializer for rendering linkable statistics, e.g. related object counts for a Location.
27 pub fn new(title: String, count: i32, ui_url: String, api_url: String) -> Stats {
28 Stats {
29 title,
30 count,
31 ui_url,
32 api_url,
33 }
34 }
35}