asana/models/
inline_response_200_6.rs

1/*
2 * Asana
3 *
4 * 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).
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// InlineResponse2006 : The full record for all events that have occurred since the sync token was created.
12
13#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
14pub struct InlineResponse2006 {
15    #[serde(rename = "data", skip_serializing_if = "Option::is_none")]
16    pub data: Option<Vec<crate::models::EventResponse>>,
17    /// A sync token to be used with the next call to the events endpoint.
18    #[serde(rename = "sync", skip_serializing_if = "Option::is_none")]
19    pub sync: Option<String>,
20}
21
22impl InlineResponse2006 {
23    /// The full record for all events that have occurred since the sync token was created.
24    pub fn new() -> InlineResponse2006 {
25        InlineResponse2006 { data: None, sync: None }
26    }
27}