messaging_api_line/models/limit.rs
1/*
2 * LINE Messaging API
3 *
4 * This document describes LINE Messaging API.
5 *
6 * The version of the OpenAPI document: 0.0.1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Limit : Limit of the Narrowcast
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Limit {
17 /// The maximum number of narrowcast messages to send. Use this parameter to limit the number of narrowcast messages sent. The recipients will be chosen at random.
18 #[serde(rename = "max", skip_serializing_if = "Option::is_none")]
19 pub max: Option<i32>,
20 /// If true, the message will be sent within the maximum number of deliverable messages. The default value is `false`. Targets will be selected at random.
21 #[serde(rename = "upToRemainingQuota", skip_serializing_if = "Option::is_none")]
22 pub up_to_remaining_quota: Option<bool>,
23}
24
25impl Limit {
26 /// Limit of the Narrowcast
27 pub fn new() -> Limit {
28 Limit {
29 max: None,
30 up_to_remaining_quota: None,
31 }
32 }
33}
34