use crate::core::macros::tmf_struct;
use crate::core::{Characteristic, FeatureRelationshipType, Policy, Ref, TimePeriod};
tmf_struct! {
@name = "Feature";
pub struct Feature {
id: String,
name: String,
is_enabled: bool,
is_bundle: bool,
feature_characteristic: Vec<Characteristic>,
feature_relationship: Vec<FeatureRelationship>,
policy_constraint: Vec<Ref<Policy>>,
}
}
tmf_struct! {
@name = "FeatureRelationship";
pub struct FeatureRelationship {
id: String,
href: String,
name: String,
relationship_type: FeatureRelationshipType,
valid_for: TimePeriod,
@renamed {
"@referredType" referred_type: String,
}
}
}