messaging_api_line/models/
message_quota_response.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#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct MessageQuotaResponse {
16    #[serde(rename = "type")]
17    pub r#type: models::QuotaType,
18    /// The target limit for sending messages in the current month. This property is returned when the `type` property has a value of `limited`. 
19    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
20    pub value: Option<i64>,
21}
22
23impl MessageQuotaResponse {
24    pub fn new(r#type: models::QuotaType) -> MessageQuotaResponse {
25        MessageQuotaResponse {
26            r#type,
27            value: None,
28        }
29    }
30}
31