/*
* Asana
*
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
/// WebhookCompactAllOf : Webhook objects represent the state of an active subscription for a server to be updated with information from Asana. This schema represents the subscription itself, not the objects that are sent to the server. For information on those please refer to the [Event](/docs/tocS_Event) schema.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebhookCompactAllOf {
/// If true, the webhook will send events - if false it is considered inactive and will not generate events.
#[serde(rename = "active", skip_serializing_if = "Option::is_none")]
pub active: Option<bool>,
#[serde(rename = "resource", skip_serializing_if = "Option::is_none")]
pub resource: Option<Box<crate::models::AsanaNamedResource>>,
/// The URL to receive the HTTP POST.
#[serde(rename = "target", skip_serializing_if = "Option::is_none")]
pub target: Option<String>,
}
impl WebhookCompactAllOf {
/// Webhook objects represent the state of an active subscription for a server to be updated with information from Asana. This schema represents the subscription itself, not the objects that are sent to the server. For information on those please refer to the [Event](/docs/tocS_Event) schema.
pub fn new() -> WebhookCompactAllOf {
WebhookCompactAllOf { active: None, resource: None, target: None }
}
}