1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * Ory APIs
 *
 * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. 
 *
 * The version of the OpenAPI document: v1.4.8
 * Contact: support@ory.sh
 * Generated by: https://openapi-generator.tech
 */

/// GetProjectEventsBody : Body of the getProjectEvents endpoint



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetProjectEventsBody {
    /// The event name to query for
    #[serde(rename = "event_name", skip_serializing_if = "Option::is_none")]
    pub event_name: Option<String>,
    /// Event attribute filters
    #[serde(rename = "filters", skip_serializing_if = "Option::is_none")]
    pub filters: Option<Vec<crate::models::AttributeFilter>>,
    /// The start RFC3339 date of the time window
    #[serde(rename = "from")]
    pub from: String,
    /// Maximum number of events to return
    #[serde(rename = "page_size", skip_serializing_if = "Option::is_none")]
    pub page_size: Option<i64>,
    /// Pagination token to fetch next page, empty if first page
    #[serde(rename = "page_token", skip_serializing_if = "Option::is_none")]
    pub page_token: Option<String>,
    /// The end RFC3339 date of the time window
    #[serde(rename = "to")]
    pub to: String,
}


impl GetProjectEventsBody {
    /// Body of the getProjectEvents endpoint
    pub fn new(from: String, to: String) -> GetProjectEventsBody {
        GetProjectEventsBody {
                event_name: None,
                filters: None,
                from,
                page_size: None,
                page_token: None,
                to,
        }
    }
}