jira_api_v2/models/
audit_records.rs

1/*
2 * The Jira Cloud platform REST API
3 *
4 * Jira Cloud platform REST API documentation
5 *
6 * The version of the OpenAPI document: 1001.0.0-SNAPSHOT
7 * Contact: ecosystem@atlassian.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// AuditRecords : Container for a list of audit records.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct AuditRecords {
17    /// The number of audit items skipped before the first item in this list.
18    #[serde(rename = "offset", skip_serializing_if = "Option::is_none")]
19    pub offset: Option<i32>,
20    /// The requested or default limit on the number of audit items to be returned.
21    #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
22    pub limit: Option<i32>,
23    /// The total number of audit items returned.
24    #[serde(rename = "total", skip_serializing_if = "Option::is_none")]
25    pub total: Option<i64>,
26    /// The list of audit items.
27    #[serde(rename = "records", skip_serializing_if = "Option::is_none")]
28    pub records: Option<Vec<models::AuditRecordBean>>,
29}
30
31impl AuditRecords {
32    /// Container for a list of audit records.
33    pub fn new() -> AuditRecords {
34        AuditRecords {
35            offset: None,
36            limit: None,
37            total: None,
38            records: None,
39        }
40    }
41}
42