afinsp-rs 0.1.1

AFINSP Billing SDK for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// this file is @generated
use serde::{Deserialize, Serialize};

use super::{feature_ref::FeatureRef, resolved_entitlement_value::ResolvedEntitlementValue};

/// Merged entitlement value for a feature across the priority hierarchy, without usage data.
#[derive(Clone, Debug, Default, PartialEq, Deserialize, Serialize)]
pub struct ResolvedEntitlement {
    pub feature: FeatureRef,

    pub value: ResolvedEntitlementValue,
}

impl ResolvedEntitlement {
    pub fn new(feature: FeatureRef, value: ResolvedEntitlementValue) -> Self {
        Self { feature, value }
    }
}