jira_api_v2/models/failed_webhooks.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/// FailedWebhooks : A page of failed webhooks.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct FailedWebhooks {
17 /// The list of webhooks.
18 #[serde(rename = "values")]
19 pub values: Vec<models::FailedWebhook>,
20 /// The maximum number of items on the page. If the list of values is shorter than this number, then there are no more pages.
21 #[serde(rename = "maxResults")]
22 pub max_results: i32,
23 /// The URL to the next page of results. Present only if the request returned at least one result.The next page may be empty at the time of receiving the response, but new failed webhooks may appear in time. You can save the URL to the next page and query for new results periodically (for example, every hour).
24 #[serde(rename = "next", skip_serializing_if = "Option::is_none")]
25 pub next: Option<String>,
26}
27
28impl FailedWebhooks {
29 /// A page of failed webhooks.
30 pub fn new(values: Vec<models::FailedWebhook>, max_results: i32) -> FailedWebhooks {
31 FailedWebhooks {
32 values,
33 max_results,
34 next: None,
35 }
36 }
37}
38