jira_api_v2/models/
registered_webhook.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/// RegisteredWebhook : ID of a registered webhook or error messages explaining why a webhook wasn't registered.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct RegisteredWebhook {
17    /// The ID of the webhook. Returned if the webhook is created.
18    #[serde(rename = "createdWebhookId", skip_serializing_if = "Option::is_none")]
19    pub created_webhook_id: Option<i64>,
20    /// Error messages specifying why the webhook creation failed.
21    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
22    pub errors: Option<Vec<String>>,
23}
24
25impl RegisteredWebhook {
26    /// ID of a registered webhook or error messages explaining why a webhook wasn't registered.
27    pub fn new() -> RegisteredWebhook {
28        RegisteredWebhook {
29            created_webhook_id: None,
30            errors: None,
31        }
32    }
33}
34