netbox_openapi/models/
paginated_notification_group_list.rs

1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.4.2-Docker-3.4.1 (4.4)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct PaginatedNotificationGroupList {
13    #[serde(rename = "count")]
14    pub count: i32,
15    #[serde(
16        rename = "next",
17        default,
18        with = "::serde_with::rust::double_option",
19        skip_serializing_if = "Option::is_none"
20    )]
21    pub next: Option<Option<String>>,
22    #[serde(
23        rename = "previous",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub previous: Option<Option<String>>,
29    #[serde(rename = "results")]
30    pub results: Vec<crate::models::NotificationGroup>,
31}
32
33impl PaginatedNotificationGroupList {
34    pub fn new(
35        count: i32,
36        results: Vec<crate::models::NotificationGroup>,
37    ) -> PaginatedNotificationGroupList {
38        PaginatedNotificationGroupList {
39            count,
40            next: None,
41            previous: None,
42            results,
43        }
44    }
45}