Skip to main content

onesignal_rust_api/models/
rate_limit_error.rs

1/*
2 * OneSignal
3 *
4 * A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com
5 *
6 * Contact: devrel@onesignal.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10
11
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct RateLimitError {
15    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
16    pub errors: Option<Vec<String>>,
17    #[serde(rename = "limit", skip_serializing_if = "Option::is_none")]
18    pub limit: Option<String>,
19}
20
21impl RateLimitError {
22    pub fn new() -> RateLimitError {
23        RateLimitError {
24            errors: None,
25            limit: None,
26        }
27    }
28}
29
30