tmflib 0.1.40

Interface library for processing TMF payloads
Documentation
use super::{PolicyManagedEntity, PolicyOperator};
use serde::{Deserialize, Serialize};
///Managed `PolicyOperator`
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct ManagedPolicyOperator {
    /// Inlined fields from `PolicyManagedEntity`
    #[serde(flatten)]
    pub policy_managed_entity: PolicyManagedEntity,
    ///A `PolicyOperator` is an entity that defines the logical operations that can be used to combine multiple `PolicyConditions` within a `PolicyExpression`.
    #[serde(flatten)]
    pub policy_operator: PolicyOperator,
}
impl std::fmt::Display for ManagedPolicyOperator {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}
impl std::ops::Deref for ManagedPolicyOperator {
    type Target = PolicyManagedEntity;
    fn deref(&self) -> &Self::Target {
        &self.policy_managed_entity
    }
}
impl std::ops::DerefMut for ManagedPolicyOperator {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.policy_managed_entity
    }
}