use super::extensible::TmfType;
macro_rules! ref_target {
($(#[$meta:meta])* $name:ident, $ty:literal, $ref_ty:literal) => {
$(#[$meta])*
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct $name;
impl TmfType for $name {
const TYPE_NAME: &'static str = $ty;
const REF_TYPE_NAME: &'static str = $ref_ty;
}
};
}
ref_target!(
Channel, "Channel", "ChannelRef"
);
ref_target!(
Place, "Place", "PlaceRef"
);
ref_target!(
GeographicAddress, "GeographicAddress", "GeographicAddressRef"
);
ref_target!(
MarketSegment, "MarketSegment", "MarketSegmentRef"
);
ref_target!(
Policy, "Policy", "PolicyRef"
);
ref_target!(
ServiceLevelAgreement, "ServiceLevelAgreement", "SLARef"
);
ref_target!(
Agreement, "Agreement", "AgreementRef"
);
ref_target!(
PaymentMethod, "PaymentMethod", "PaymentMethodRef"
);
ref_target!(
ServiceCandidate, "ServiceCandidate", "ServiceCandidateRef"
);
ref_target!(
ServiceSpecification, "ServiceSpecification", "ServiceSpecificationRef"
);
ref_target!(
IntentSpecification, "IntentSpecification", "IntentSpecificationRef"
);
ref_target!(
ConnectionPointSpecification, "ConnectionPointSpecification", "ConnectionPointSpecificationRef"
);
ref_target!(
EndpointSpecification, "EndpointSpecification", "EndpointSpecificationRef"
);
ref_target!(
ConnectionPoint, "ConnectionPoint", "ConnectionPointRef"
);
ref_target!(
Schedule, "Schedule", "ScheduleRef"
);
ref_target!(
AlarmedObject, "AlarmedObject", "AlarmedObjectRef"
);
ref_target!(
Threshold, "Threshold", "ThresholdRef"
);
ref_target!(
BillingAccount, "BillingAccount", "BillingAccountRef"
);
ref_target!(
FinancialAccount, "FinancialAccount", "FinancialAccountRef"
);
ref_target!(
BillCycleSpecification, "BillCycleSpecification", "BillCycleSpecificationRef"
);
ref_target!(
Payment, "Payment", "PaymentRef"
);
ref_target!(
Quote, "Quote", "QuoteRef"
);
ref_target!(
Appointment, "Appointment", "AppointmentRef"
);
ref_target!(
Constraint, "Constraint", "ConstraintRef"
);
ref_target!(
AnyEntity, "Entity", "EntityRef"
);
ref_target!(
Intent, "Intent", "IntentRef"
);
ref_target!(
AgreementSpecification, "AgreementSpecification", "AgreementSpecificationRef"
);
ref_target!(
PermissionSpecificationSet, "PermissionSpecificationSet", "PermissionSpecificationSetRef"
);
ref_target!(
AssociationSpecification, "AssociationSpecification", "AssociationSpecificationRef"
);
ref_target!(
Account, "Account", "AccountRef"
);
ref_target!(
Promotion, "Promotion", "PromotionRef"
);
ref_target!(
ProductOfferingQualification, "ProductOfferingQualification", "ProductOfferingQualificationRef"
);