linkbreakers 1.149.1

Official Rust SDK for the Linkbreakers API
Documentation
/*
 * Linkbreakers API
 *
 * This is a documentation of all the APIs of Linkbreakers
 *
 * The version of the OpenAPI document: 1.149.1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PlanLimit {
    #[serde(rename = "key", skip_serializing_if = "Option::is_none")]
    pub key: Option<models::PlanLimitKey>,
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<models::PlanLimitKind>,
    /// The ceiling. Absent when kind is PLAN_LIMIT_KIND_UNLIMITED or PLAN_LIMIT_KIND_METERED.
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<i32>,
}

impl PlanLimit {
    pub fn new() -> PlanLimit {
        PlanLimit {
            key: None,
            kind: None,
            value: None,
        }
    }
}