trieve_client/models/
get_events_data.rs

1/*
2 * Trieve API
3 *
4 * Trieve OpenAPI Specification. This document describes all of the operations available through the Trieve API.
5 *
6 * The version of the OpenAPI document: 0.11.7
7 * Contact: developers@trieve.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct GetEventsData {
15    /// The types of events to get. Any combination of file_uploaded, chunk_uploaded, chunk_action_failed, chunk_updated, or qdrant_index_failed. Leave undefined to get all events.
16    #[serde(rename = "event_types", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub event_types: Option<Option<Vec<models::EventTypeRequest>>>,
18    /// The page number to get. Default is 1.
19    #[serde(rename = "page", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
20    pub page: Option<Option<i64>>,
21    /// The number of items per page. Default is 10.
22    #[serde(rename = "page_size", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
23    pub page_size: Option<Option<i64>>,
24}
25
26impl GetEventsData {
27    pub fn new() -> GetEventsData {
28        GetEventsData {
29            event_types: None,
30            page: None,
31            page_size: None,
32        }
33    }
34}
35