svix_webhook_with_clone/models/
app_usage_stats_in.rs

1/*
2 * Svix API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.1.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[allow(unused_imports)]
12use crate::models;
13#[allow(unused_imports)]
14use serde::{Deserialize, Serialize};
15        
16                #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17                pub struct AppUsageStatsIn {
18                        /// Specific app IDs or UIDs to aggregate stats for.  Note that if none of the given IDs or UIDs are resolved, a 422 response will be given.
19                        #[serde(rename = "appIds", skip_serializing_if = "Option::is_none")]
20                        pub app_ids: Option<Vec<String>>,
21                        #[serde(rename = "since")]
22                        pub since: String,
23                        #[serde(rename = "until")]
24                        pub until: String,
25                    }
26
27                    impl AppUsageStatsIn {
28                    pub fn new(since: String, until: String) -> AppUsageStatsIn {
29                AppUsageStatsIn {
30                    app_ids: None,
31                    since,
32                    until,
33                    }
34                    }
35                    }
36