asana 0.1.1

asana bindings for rust
Documentation
/*
 * 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
 */

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebhookResponseAllOf {
    /// The time at which this resource was created.
    #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// The timestamp when the webhook last received an error when sending an event to the target.
    #[serde(
        rename = "last_failure_at",
        skip_serializing_if = "Option::is_none"
    )]
    pub last_failure_at: Option<String>,
    /// The contents of the last error response sent to the webhook when attempting to deliver events to the target.
    #[serde(
        rename = "last_failure_content",
        skip_serializing_if = "Option::is_none"
    )]
    pub last_failure_content: Option<String>,
    /// The timestamp when the webhook last successfully sent an event to the target.
    #[serde(
        rename = "last_success_at",
        skip_serializing_if = "Option::is_none"
    )]
    pub last_success_at: Option<String>,
    /// Whitelist of filters to apply to events from this webhook. If a webhook event passes any of the filters the event will be delivered; otherwise no event will be sent to the receiving server.
    #[serde(rename = "filters", skip_serializing_if = "Option::is_none")]
    pub filters: Option<Vec<crate::models::WebhookFilter>>,
}

impl WebhookResponseAllOf {
    pub fn new() -> WebhookResponseAllOf {
        WebhookResponseAllOf {
            created_at: None,
            last_failure_at: None,
            last_failure_content: None,
            last_success_at: None,
            filters: None,
        }
    }
}