canton_api_client/models/
filters.rs

1/*
2 * JSON Ledger API HTTP endpoints
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 3.3.0-SNAPSHOT
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Filters : The union of a set of template filters, interface filters, or a wildcard.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Filters {
17    /// Every filter in the cumulative list expands the scope of the resulting stream. Each interface, template or wildcard filter means additional events that will match the query. The impact of include_interface_view and include_created_event_blob fields in the filters will also be accumulated. At least one cumulative filter MUST be specified. A template or an interface SHOULD NOT appear twice in the accumulative field. A wildcard filter SHOULD NOT be defined more than once in the accumulative field. Optional
18    #[serde(rename = "cumulative", skip_serializing_if = "Option::is_none")]
19    pub cumulative: Option<Vec<models::CumulativeFilter>>,
20}
21
22impl Filters {
23    /// The union of a set of template filters, interface filters, or a wildcard.
24    pub fn new() -> Filters {
25        Filters {
26            cumulative: None,
27        }
28    }
29}
30