afinsp-rs 0.1.1

AFINSP Billing SDK for Rust
Documentation
// this file is @generated
use serde::{Deserialize, Serialize};

use super::{
    boolean_effective_entitlement_value::BooleanEffectiveEntitlementValue,
    config_effective_entitlement_value::ConfigEffectiveEntitlementValue,
    metered_effective_entitlement_value::MeteredEffectiveEntitlementValue,
};

#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
#[serde(tag = "type")]
pub enum EffectiveEntitlementValue {
    #[serde(rename = "BOOLEAN")]
    Boolean(BooleanEffectiveEntitlementValue),
    #[serde(rename = "METERED")]
    Metered(MeteredEffectiveEntitlementValue),
    #[serde(rename = "CONFIG")]
    Config(ConfigEffectiveEntitlementValue),
}

impl Default for EffectiveEntitlementValue {
    fn default() -> Self {
        Self::Boolean(BooleanEffectiveEntitlementValue::default())
    }
}