Skip to main content

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